-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute deferred functions during failure (#472)
Deferred functions are not executed by the os.Exit function or by calls to the fatal function when it is inside of a goroutine. This change replaces os.Exit with the fatal function and adds an error channel to pass errors from goroutines. Fixes #463 Signed-off-by: John Akre <[email protected]>
- Loading branch information
John Akre
authored
Jul 16, 2019
1 parent
7070546
commit 2953bc3
Showing
1 changed file
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters