exif-read-tool/main.go: exit 1 on panic (#23)

for/master
Felix Kaiser 2020-01-01 17:13:14 +01:00 committed by Dustin Oprea
parent 8fd2b91cd6
commit 3a4fc51e30
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ func main() {
if state := recover(); state != nil {
err := log.Wrap(state.(error))
log.PrintErrorf(err, "Program error.")
os.Exit(1)
}
}()