mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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 {
|
||||
_, ok := errorsMap[err]
|
||||
_, ok := errorsMap[errors.Cause(err)]
|
||||
return ok
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user