Skip to content

Commit

Permalink
core.startup: Use exit status 1 for unhandled exceptions
Browse files Browse the repository at this point in the history
Previously an error during early startup would print an error message
but return exit status 0 (success).
  • Loading branch information
lukego committed May 28, 2015
1 parent f1536d6 commit 053bf6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ local ok, err = pcall(require, "core.main")
if not ok then
print("startup: unhandled exception")
print(err)
os.exit(1)
end

0 comments on commit 053bf6c

Please sign in to comment.