Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /adjust-sourcemap-loader /lib /process /get-error.js
Download frontend/node_modules/adjust-sourcemap-loader/lib/process/get-error.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/adjust-sourcemap-loader/lib/process/get-error.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/adjust-sourcemap-loader/lib/process/get-error.js
-
curl -L -o get-error.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/adjust-sourcemap-loader/lib/process/get-error.js
414 Bytes
| ; | |
| 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; |