mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 10:52:47 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
20
node_modules/es5-ext/error/custom.js
generated
vendored
Normal file
20
node_modules/es5-ext/error/custom.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
var assign = require('../object/assign')
|
||||
|
||||
, captureStackTrace = Error.captureStackTrace;
|
||||
|
||||
exports = module.exports = function (message/*, code, ext*/) {
|
||||
var err = new Error(), code = arguments[1], ext = arguments[2];
|
||||
if (ext == null) {
|
||||
if (code && (typeof code === 'object')) {
|
||||
ext = code;
|
||||
code = null;
|
||||
}
|
||||
}
|
||||
if (ext != null) assign(err, ext);
|
||||
err.message = String(message);
|
||||
if (code != null) err.code = String(code);
|
||||
if (captureStackTrace) captureStackTrace(err, exports);
|
||||
return err;
|
||||
};
|
||||
Reference in New Issue
Block a user