mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
fix panic on top-level log (#125)
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user