mirror of
https://github.com/aykhans/dodo.git
synced 2025-04-22 11:35:57 +00:00
🔨 Update PrintErrAndExit function to exit with code 1 instead of 0
This commit is contained in:
parent
f56d624cf1
commit
4635ad6968
@ -48,7 +48,7 @@ func PrintErr(err error) {
|
|||||||
func PrintErrAndExit(err error) {
|
func PrintErrAndExit(err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
PrintErr(err)
|
PrintErr(err)
|
||||||
os.Exit(0)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user