1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

style: improved output when canceled

This commit is contained in:
Carlos Alexandro Becker 2017-12-29 17:12:25 -02:00
parent a84148c620
commit 1d0911ba1f
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -132,9 +132,7 @@ func Release(flags Flags) error {
case <-ctx.Done():
return ctx.Err()
case sig := <-signals:
restoreOutputPadding()
log.Infof("stopping: %s", sig)
return nil
return fmt.Errorf("canceled due to %s", sig)
}
}