Do not use process.exit(code)

pull/251/head
Anton Medvedev 1 year ago
parent be7ac90e7a
commit 36ca6f12ee
No known key found for this signature in database

@ -21,7 +21,7 @@ void async function main() {
json = JSON.parse(input)
} catch (err) {
process.stderr.write(`Invalid JSON: ${err.message}\n`)
process.exit(1)
return process.exitCode = 1
}
let i, code, output = json
@ -29,7 +29,7 @@ void async function main() {
output = await transform(output, code)
} catch (err) {
printErr(err)
process.exit(1)
return process.exitCode = 1
}
if (typeof output === 'undefined')

Loading…
Cancel
Save