mirror of https://github.com/dsoprea/go-exif.git
exif-read-tool/main.go: exit 1 on panic (#23)
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…
Reference in New Issue