/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/adjust-sourcemap-loader/lib/process/get-error.js
17 строк
414 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'use strict'; var PACKAGE_NAME = require('../../package.json').name; /** * Get an Error instance for the given message * @param {...*} message Any number of message arguments * @returns {Error} */ function getError() { var message = (PACKAGE_NAME + ':\n' + Array.prototype.slice.call(arguments).join(' ')) .split(/\s*\n\s*/) .join('\n '); return new Error(message); } module.exports = getError;