mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-14 05:38:51 +00:00
🔨 Update PrintErrAndExit function to exit with code 1 instead of 0
This commit is contained in:
1 parent
f56d624cf1
commit
4635ad6968
1 file changed
+1
-1
+1
-1
@@ -48,7 +48,7 @@ func PrintErr(err error) {
|
||||
func PrintErrAndExit(err error) {
|
||||
if err != nil {
|
||||
PrintErr(err)
|
||||
os.Exit(0)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user