Skip to content
Myr

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 file

Take 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 back
1import {verboseLog} from './log.js';
2

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

lines 3–5why, one step back
3// When `verbose` is `short|full|custom`, print each command's error when it fails
4export const logError = (result, verboseInfo) => {5 if (result.failed) {

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

lines 6–7why, one step back
6 verboseLog({
7 type: 'error',

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

line 8why, one step back
8 verboseMessage: result.shortMessage,

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

line 9why, one step back
9 verboseInfo,

Allow `verbose` option to be a function for custom logging (#1130)ehmickybefore adoption8daf348

line 10why, one step back
10 result,

Refactor `verbose` logic (#1126)ehmickybefore adoptionf9f1199

line 11why, one step back
11 });

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 12–13why, one step back
12 }
13};