mirror of
https://github.com/shelljs/shelljs.git
synced 2025-12-08 20:35:51 +00:00
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).
6 lines
125 B
JavaScript
6 lines
125 B
JavaScript
#!/usr/bin/env node
|
|
console.log('fast');
|
|
setTimeout(function() {
|
|
console.log('slow');
|
|
}, parseInt(process.argv[2], 10));
|