cmd/osbuild-worker: dnf-json returns MarkingErrors (plural)
This commit is contained in:
parent
c64eb98011
commit
318a4525c6
3 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ const (
|
|||
ErrorOldResultCompatible ClientErrorCode = 18
|
||||
|
||||
ErrorDNFDepsolveError ClientErrorCode = 20
|
||||
ErrorDNFMarkingError ClientErrorCode = 21
|
||||
ErrorDNFMarkingErrors ClientErrorCode = 21
|
||||
ErrorDNFOtherError ClientErrorCode = 22
|
||||
ErrorRPMMDError ClientErrorCode = 23
|
||||
)
|
||||
|
|
@ -53,7 +53,7 @@ func GetStatusCode(err *Error) StatusCode {
|
|||
switch err.ID {
|
||||
case ErrorDNFDepsolveError:
|
||||
return JobStatusUserInputError
|
||||
case ErrorDNFMarkingError:
|
||||
case ErrorDNFMarkingErrors:
|
||||
return JobStatusUserInputError
|
||||
case ErrorNoDynamicArgs:
|
||||
return JobStatusUserInputError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue