mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 16:01:55 +03:00
Remove juju/errors
This commit is contained in:
+5
-2
@@ -7,8 +7,11 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func Fatal(args ...interface{}) {
|
||||
PrintStderr(args...)
|
||||
func Fatal(arg interface{}) {
|
||||
if value, ok := arg.(error); ok {
|
||||
arg = fmt.Errorf("fatal error: %+v", value)
|
||||
}
|
||||
PrintStderr(arg)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user