Skip to content

Commit

Permalink
Merge pull request #13 from mercedes-benz/fix_workflows
Browse files Browse the repository at this point in the history
handle error in main and throw exit code
  • Loading branch information
mebel123 committed May 11, 2023
2 parents 96c2c20 + 726b8d5 commit e2329db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
package main

import (
"fmt"
"os"

"github.com/mercedes-benz/disclosure-cli/cmd"
)

func main() {
cmd.Execute()
if err := cmd.Execute(); err != nil {
fmt.Printf("%s. ", err)
os.Exit(1)
}
}

0 comments on commit e2329db

Please sign in to comment.