Nate Fischer 3149e09d5f refactor: explicit handling for execa errors
This adds a dedicated if-condition to handle internal errors from execa
(timeout, maxBuffer, etc.) and to distinguish these from "regular"
errors (the command executed, but it failed with non-zero status).
2025-04-17 13:52:12 -07:00

6 lines
125 B
JavaScript

#!/usr/bin/env node
console.log('fast');
setTimeout(function() {
console.log('slow');
}, parseInt(process.argv[2], 10));