Replies: 3 comments
-
Reported here: adonisjs/ace#119 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@bstsnail, @thetutlage I've made this workaround: Create a new file, in the same place of Put the script below, inside the #!/usr/bin/env node
const cp = require('child_process')
let ace = cp.spawn('node', ['ace', ...process.argv.slice(2)], {
stdio: [process.stdin, process.stdout, 'pipe'],
})
let hasError = false
ace.stderr.on('data', (buffer) => {
if (!hasError) {
hasError = /\[[^\]]*error[^\]]*\]\s+/gi.test(buffer.toString())
}
process.stderr.write(buffer)
})
ace.on('close', () => {
if (hasError) process.exit(1)
}) And now, instead use the regular Note: you still need the |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is a bug. Will work on the fix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I get the real exit code of node ace command ?
Beta Was this translation helpful? Give feedback.
All reactions