Skip to content

Commit

Permalink
fix(stream deck): Exit with error when streamdeck is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Jan 23, 2023
1 parent f2f254c commit c7f7ed0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getStreamdeck = async () => {
} catch (e) {
console.error(e)
console.error('Could not open Stream Deck')
process.exit()
process.exit(1)
}
return streamdeck
}
Expand All @@ -39,6 +39,7 @@ const run = async () => {
try {
;[, streamdeck] = await Promise.all([bootstrap.start(), getStreamdeck()])
} catch (e) {
console.error("Connection error", e)
process.kill(process.pid, 'SIGINT')
}

Expand Down

0 comments on commit c7f7ed0

Please sign in to comment.