Innovenergy_trunk/frontend/node_modules/testcafe-hammerhead/lib/utils/err-to-string.js

10 lines
319 B
JavaScript
Raw Permalink Normal View History

"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;