mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
release v4.3.0
This commit is contained in:
@@ -134,6 +134,11 @@ var errorsMap = map[error]int{
|
||||
OCRTextNotFoundError: 84,
|
||||
}
|
||||
|
||||
func IsErrorPredefined(err error) bool {
|
||||
_, ok := errorsMap[err]
|
||||
return ok
|
||||
}
|
||||
|
||||
func GetErrorCode(err error) (exitCode int) {
|
||||
if err == nil {
|
||||
return Success
|
||||
|
||||
Reference in New Issue
Block a user