exiting with a non-zero return code workaround broken #5356
-
this is related to my question about creating console output without a newline (#1772). i used the same technique to exit the program. i created
adding the following in my program:
it's called as:
that worked perfectly through release anyone know if this is a Wing or |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
perhaps you have an idea @MarkMcCulloh? |
Beta Was this translation helpful? Give feedback.
-
ah, a worker thread. that makes sense. what i really want to do i just unbuffer |
Beta Was this translation helpful? Give feedback.
-
@MarkMcCulloh i'm prepared to do a PR for this -- but it can't really be |
Beta Was this translation helpful? Give feedback.
I think there is a bug preventing the exit code from propagating outside of the worker thread, so that part could be fixed.
Also I would suggest using
process.exitCode = <number>
instead to avoid the process terminating before the wing CLI can finish cleanup.