Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F119762396
SassError.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 29, 06:00
Size
969 B
Mime Type
text/x-c++
Expires
Tue, Jul 1, 06:00 (2 d)
Engine
blob
Format
Raw Data
Handle
27060359
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
SassError.js
View Options
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class SassError extends Error {
constructor(sassError) {
super();
this.name = "SassError"; // Instruct webpack to hide the JS stack from the console.
// Usually you're only interested in the SASS error in this case.
this.hideStack = true;
Error.captureStackTrace(this, this.constructor);
if (typeof sassError.line !== "undefined" || typeof sassError.column !== "undefined") {
this.loc = {
line: sassError.line,
column: sassError.column
};
} // Keep original error if `sassError.formatted` is unavailable
this.message = `${this.name}: ${typeof sassError.message !== "undefined" ? sassError.message : sassError}`;
if (sassError.formatted) {
this.message = `${this.name}: ${sassError.formatted.replace(/^Error: /, "")}`;
}
}
}
var _default = SassError;
exports.default = _default;
Event Timeline
Log In to Comment