mirror of
https://github.com/dsoprea/go-exif.git
synced 2025-05-31 11:41:57 +00:00
exif-read-tool/main.go: exit 1 on panic (#23)
This commit is contained in:
parent
8fd2b91cd6
commit
3a4fc51e30
@ -49,6 +49,7 @@ func main() {
|
||||
if state := recover(); state != nil {
|
||||
err := log.Wrap(state.(error))
|
||||
log.PrintErrorf(err, "Program error.")
|
||||
os.Exit(1)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user