diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/output/output.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/output/output.go b/internal/output/output.go index 13e34a3..1e1e34e 100644 --- a/internal/output/output.go +++ b/internal/output/output.go | |||
| @@ -107,6 +107,7 @@ func (r ErrorResponse) IsError() bool { return true } | |||
| 107 | // Error codes | 107 | // Error codes |
| 108 | const ( | 108 | const ( |
| 109 | ErrInvalidPath = "INVALID_PATH" | 109 | ErrInvalidPath = "INVALID_PATH" |
| 110 | ErrInvalidArgs = "INVALID_ARGS" | ||
| 110 | ErrUnknownProjectType = "UNKNOWN_PROJECT_TYPE" | 111 | ErrUnknownProjectType = "UNKNOWN_PROJECT_TYPE" |
| 111 | ErrSSHConnectFailed = "SSH_CONNECT_FAILED" | 112 | ErrSSHConnectFailed = "SSH_CONNECT_FAILED" |
| 112 | ErrSSHAuthFailed = "SSH_AUTH_FAILED" | 113 | ErrSSHAuthFailed = "SSH_AUTH_FAILED" |
| @@ -180,7 +181,7 @@ func exitCodeForError(code string) int { | |||
| 180 | return ExitSSHFailed | 181 | return ExitSSHFailed |
| 181 | case ErrHealthCheckFailed, ErrHealthCheckTimeout: | 182 | case ErrHealthCheckFailed, ErrHealthCheckTimeout: |
| 182 | return ExitHealthFailed | 183 | return ExitHealthFailed |
| 183 | case ErrInvalidPath, ErrInvalidTTL, ErrInvalidName, ErrHostNotConfigured: | 184 | case ErrInvalidPath, ErrInvalidTTL, ErrInvalidName, ErrHostNotConfigured, ErrInvalidArgs: |
| 184 | return ExitInvalidArgs | 185 | return ExitInvalidArgs |
| 185 | default: | 186 | default: |
| 186 | return ExitDeployFailed | 187 | return ExitDeployFailed |
