error.js
This file
Path
lib/verbose/error.js
13 lines · 306 bytes · JavaScript
Last changed by
Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
History of this fileTake it
The walk stopped after 200 commits: lines older than 9f65b86 point at it.
100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 1–2why, one step back1import {verboseLog} from './log.js';2Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
lines 3–5why, one step back3// When `verbose` is `short|full|custom`, print each command's error when it fails4export const logError = (result, verboseInfo) => {5 if (result.failed) {Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199
lines 6–7why, one step back6 verboseLog({7 type: 'error',Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
line 8why, one step back8 verboseMessage: result.shortMessage,Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199
line 9why, one step back9 verboseInfo,Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348
line 10why, one step back10 result,Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199
line 11why, one step back11 });100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 12–13why, one step back12 }13};