diff --git a/commands/uploader.go b/commands/uploader.go index fe722e20..062eb37a 100644 --- a/commands/uploader.go +++ b/commands/uploader.go @@ -326,9 +326,13 @@ func (c *uploadContext) Await() { for name, oid := range corrupt { Print(" (corrupt) %s (%s)", name, oid) } + + if !c.allowMissing { + os.Exit(2) + } } - if len(c.tq.Errors()) > 0 { + if len(others) > 0 { os.Exit(2) }