Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid type error on SIGINT/SIGTERM #1100

Merged
merged 1 commit into from
Nov 20, 2023
Merged

fix: avoid type error on SIGINT/SIGTERM #1100

merged 1 commit into from
Nov 20, 2023

Conversation

AlCalzone
Copy link
Member

Without this, I'm getting an error when shutting down:

TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('SIGINT')
    at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
    at process.exit (node:internal/process/per_thread:188:24)
    at process.handleShutdown (/home/dominic/Repositories/zwave-js-server/src/bin/server.ts:196:13) {
  code: 'ERR_INVALID_ARG_TYPE'
}

@AlCalzone AlCalzone merged commit 7ee37ce into master Nov 20, 2023
1 check passed
@AlCalzone AlCalzone deleted the fix-sigint branch November 20, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants