You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like it was resolved by #146, which landed both halves of what's discussed above:
ExecProcess.signalCode — the pass-through getter to process.signalCode suggested in the first comment (src/main.ts)
NonZeroExitError.signalCode, plus a The command ... was killed by the signal SIGTERM message — which covers the "expose it when the error is thrown" clarification
Both are covered by tests in src/test/main_test.ts for the async and sync paths.
Activity
43081j commentedon Aug 18, 2024
this may be as simple as introducing a getter for
signalCodewhich is a pass through toprocess.signalCodeSuperchupuDev commentedon Aug 19, 2024
thatd be nice, but i just noticed i worded the feature request wrong 😅 i meant more of exposing it when spawn errors get thrown but that can work too
43081j commentedon Aug 19, 2024
when a spawn fails, it won't be a signal but will be a regular JS exception (e.g. if the command doesn't exist)
when the command does exist but exits for some reason,
process.signalCodewill tell you whyshaurya703 commentedon Sep 12, 2026
This looks like it was resolved by #146, which landed both halves of what's discussed above:
ExecProcess.signalCode— the pass-through getter toprocess.signalCodesuggested in the first comment (src/main.ts)NonZeroExitError.signalCode, plus aThe command ... was killed by the signal SIGTERMmessage — which covers the "expose it when the error is thrown" clarificationBoth are covered by tests in
src/test/main_test.tsfor the async and sync paths.Probably safe to close.