diff --git a/cmd/ecload/main.go b/cmd/ecload/main.go index fef4e9b..e991e9b 100644 --- a/cmd/ecload/main.go +++ b/cmd/ecload/main.go @@ -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) + } }