reject.js
This file
Path
lib/return/reject.js
13 lines · 302 bytes · JavaScript
Last changed by
TweaksSindre Sorhusbefore adoption698a1b8
History of this fileTake it
1234567891011121314import {logResult} from '../verbose/complete.js';
// Applies the `reject` option.// Also print the final log line with `verbose`.export const handleResult = (result, verboseInfo, {reject}) => { logResult(result, verboseInfo);
if (reject && result.failed) { throw result; }
return result;};