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

Use firmware.upgrade #239

Merged
merged 3 commits into from
Sep 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review feedback
  • Loading branch information
kasperl committed Sep 7, 2022
commit d1dad82bb429bacc68b416d167270b943153f227
10 changes: 7 additions & 3 deletions src/jaguar.toit
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,14 @@ main arguments:
try:
catch --trace: registry_.start_installed
serve arguments
unreachable
finally: | is_exception exception |
cause := is_exception ? exception.value : null
logger.error "rebooting due to $cause"
// We shouldn't be able to get here without an exception having
// been thrown, but we play it defensively and force an exception
// if that should ever happen.
if not is_exception: unreachable
// Jaguar runs as a critical container, so an uncaught exception
// will cause the system to reboot.
logger.error "rebooting due to $exception.value"

serve arguments:
port := HTTP_PORT
Expand Down