worker: fix error status codes
The DNFDepsolveError and DNFMarking error should have a `4xx` code instead of a `5xx` error code.
This commit is contained in:
parent
290472dfdf
commit
1e443cf0fa
1 changed files with 2 additions and 2 deletions
|
|
@ -52,9 +52,9 @@ func GetStatusCode(err *Error) StatusCode {
|
|||
}
|
||||
switch err.ID {
|
||||
case ErrorDNFDepsolveError:
|
||||
return JobStatusInternalError
|
||||
return JobStatusUserInputError
|
||||
case ErrorDNFMarkingError:
|
||||
return JobStatusInternalError
|
||||
return JobStatusUserInputError
|
||||
case ErrorNoDynamicArgs:
|
||||
return JobStatusUserInputError
|
||||
case ErrorInvalidTargetConfig:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue