reject.js
This file
Path
lib/return/reject.js
13 lines · 320 bytes · JavaScript
Last changed by
Add more code comments (#984)ehmickybefore adoptionfdd8a9f
History of this fileTake it
1234567891011121314import {logFinalResult} from '../verbose/complete.js';
// Applies the `reject` option.// Also print the final log line with `verbose`.export const handleResult = (result, verboseInfo, {reject}) => { logFinalResult(result, reject, verboseInfo);
if (result.failed && reject) { throw result; }
return result;};