mirror of
https://github.com/pnpm/pnpm.git
synced 2026-02-04 12:11:29 -05:00
Use lebab to transpile ES5 code to ES6. Use eslint to fix styling issues afterwards. Run all js in strict mode to allow let/const in Node 4.
13 lines
255 B
JavaScript
13 lines
255 B
JavaScript
'use strict'
|
|
|
|
/*
|
|
* An error message with a `silent` flag, where the stack is supressed.
|
|
* Used for user-friendly error messages.
|
|
*/
|
|
|
|
module.exports = function runtimeError (message) {
|
|
const err = new Error(message)
|
|
err.silent = true
|
|
return err
|
|
}
|