set exito code on error

This commit is contained in:
Sebastian Hugentobler 2019-05-29 15:31:22 +02:00
parent 5cbfd03192
commit 049d0ffda2

View File

@ -36,8 +36,12 @@ func main() {
err := ecload.DownloadBook(*outDir, *size, *id, logger) err := ecload.DownloadBook(*outDir, *size, *id, logger)
if err != nil { if err != nil {
logger.Error.Println(err) logger.Error.Println(err)
os.Exit(1)
} }
} }
app.Run(os.Args) err := app.Run(os.Args)
if err != nil {
os.Exit(1)
}
} }