10 lines
319 B
JavaScript
10 lines
319 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const lodash_1 = require("lodash");
|
||
|
function default_1(err) {
|
||
|
const isError = err instanceof Error;
|
||
|
return isError ? err.toString() : (0, lodash_1.escape)(String(err));
|
||
|
}
|
||
|
exports.default = default_1;module.exports = exports.default;
|
||
|
|