fix: failed to return exit code correctly

This commit is contained in:
xucong.053
2022-10-23 17:29:03 +08:00
parent 677440b2e0
commit 66eca9012b

View File

@@ -135,7 +135,7 @@ var errorsMap = map[error]int{
}
func IsErrorPredefined(err error) bool {
_, ok := errorsMap[err]
_, ok := errorsMap[errors.Cause(err)]
return ok
}