mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
feat: add status code
This commit is contained in:
@@ -12,6 +12,7 @@ const (
|
|||||||
|
|
||||||
// environment: [2, 10)
|
// environment: [2, 10)
|
||||||
var (
|
var (
|
||||||
|
ConfigureError = errors.New("configure error") // 3
|
||||||
UnauthorizedError = errors.New("unauthorized error") // 4
|
UnauthorizedError = errors.New("unauthorized error") // 4
|
||||||
InvalidPython3Venv = errors.New("prepare python3 venv failed") // 9
|
InvalidPython3Venv = errors.New("prepare python3 venv failed") // 9
|
||||||
)
|
)
|
||||||
@@ -103,6 +104,7 @@ var (
|
|||||||
|
|
||||||
var errorsMap = map[error]int{
|
var errorsMap = map[error]int{
|
||||||
// environment
|
// environment
|
||||||
|
ConfigureError: 3,
|
||||||
UnauthorizedError: 4,
|
UnauthorizedError: 4,
|
||||||
InvalidPython3Venv: 9,
|
InvalidPython3Venv: 9,
|
||||||
|
|
||||||
@@ -123,6 +125,8 @@ var errorsMap = map[error]int{
|
|||||||
ParseFunctionError: 22,
|
ParseFunctionError: 22,
|
||||||
CallFunctionError: 23,
|
CallFunctionError: 23,
|
||||||
ParseVariablesError: 24,
|
ParseVariablesError: 24,
|
||||||
|
FFmpegError: 25,
|
||||||
|
FFprobeError: 26,
|
||||||
|
|
||||||
// runner
|
// runner
|
||||||
StartRunnerFailed: 30,
|
StartRunnerFailed: 30,
|
||||||
|
|||||||
Reference in New Issue
Block a user