mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
Actually report errors with moving of creating static index
Turns out that cli only exits when the error is created with cli.NewExitError. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
94d0af58c1
commit
399112fe36
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ func main() {
|
|||
|
||||
// create the initial index
|
||||
if err := createStaticIndex(r, staticDir, c.GlobalString("clair")); err != nil {
|
||||
return err
|
||||
return cli.NewExitError(fmt.Sprintf("Error creating index: %s", err.Error()), 1)
|
||||
}
|
||||
|
||||
// parse the duration
|
||||
|
|
Loading…
Reference in a new issue