mirror of
https://github.com/anchore/syft
synced 2024-11-12 23:27:20 +00:00
fix panic on top-level log (#125)
This commit is contained in:
parent
f855a38a01
commit
dc8dfc8457
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue