set exito code on error
This commit is contained in:
parent
5cbfd03192
commit
049d0ffda2
@ -36,8 +36,12 @@ func main() {
|
||||
err := ecload.DownloadBook(*outDir, *size, *id, logger)
|
||||
if err != nil {
|
||||
logger.Error.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
app.Run(os.Args)
|
||||
err := app.Run(os.Args)
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user