mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-04 23:16:57 +08:00
feat: add cdoe MaxRetryError
This commit is contained in:
@@ -47,6 +47,7 @@ var (
|
|||||||
InitPluginFailed = errors.New("init plugin failed") // 31
|
InitPluginFailed = errors.New("init plugin failed") // 31
|
||||||
BuildGoPluginFailed = errors.New("build go plugin failed") // 32
|
BuildGoPluginFailed = errors.New("build go plugin failed") // 32
|
||||||
BuildPyPluginFailed = errors.New("build py plugin failed") // 33
|
BuildPyPluginFailed = errors.New("build py plugin failed") // 33
|
||||||
|
MaxRetryError = errors.New("max retry error") // 37
|
||||||
InterruptError = errors.New("interrupt error") // 38
|
InterruptError = errors.New("interrupt error") // 38
|
||||||
TimeoutError = errors.New("timeout error") // 39
|
TimeoutError = errors.New("timeout error") // 39
|
||||||
)
|
)
|
||||||
@@ -131,6 +132,7 @@ var errorsMap = map[error]int{
|
|||||||
InitPluginFailed: 31,
|
InitPluginFailed: 31,
|
||||||
BuildGoPluginFailed: 32,
|
BuildGoPluginFailed: 32,
|
||||||
BuildPyPluginFailed: 33,
|
BuildPyPluginFailed: 33,
|
||||||
|
MaxRetryError: 37,
|
||||||
InterruptError: 38,
|
InterruptError: 38,
|
||||||
TimeoutError: 39,
|
TimeoutError: 39,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user