mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
fix: failed to return exit code correctly
This commit is contained in:
@@ -135,7 +135,7 @@ var errorsMap = map[error]int{
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IsErrorPredefined(err error) bool {
|
func IsErrorPredefined(err error) bool {
|
||||||
_, ok := errorsMap[err]
|
_, ok := errorsMap[errors.Cause(err)]
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user