Files
pnpm/src/err.ts
zkochan c72052acb3 fix(logging): pass additional info with a message
bole sends only message, code and stack from errors, so a message
object has to be used to send additional information.
2017-01-30 21:50:43 +02:00

10 lines
276 B
TypeScript

import logger from 'pnpm-logger'
export default function err (error: Error) {
// bole passes only the name, message and stack of an error
// that is why we pass error as a message as well, to pass
// any additional info
logger.error(error, error)
process.exit(1)
}