mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
fix panic on top-level log (#125)
This commit is contained in:
parent
f855a38a01
commit
dc8dfc8457
@ -38,7 +38,7 @@ func init() {
|
||||
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
log.Errorf(err.Error())
|
||||
fmt.Fprintln(os.Stderr, err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user