Skip to content

Commit

Permalink
use handleError when an error occurs during boot --autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Keller committed Mar 3, 2017
1 parent 3602e89 commit 4ffda7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ func halt(reboot: Bool = false, update: Bool = false) {




try! main()
do {
try main()
} catch {
handleError(error, "while starting up")
abort()
}


0 comments on commit 4ffda7c

Please sign in to comment.