Manager: remove superfluous "error compiling job: " prefix from message
The wrapped error already mentioned it was about job compilation.
This commit is contained in:
parent
fa69cc102b
commit
25dd7b214b
@ -99,7 +99,7 @@ func (f *Flamenco) SubmitJob(e echo.Context) error {
|
||||
case err != nil:
|
||||
logger.Warn().Err(err).Msg("error compiling job")
|
||||
// TODO: make this a more specific error object for this API call.
|
||||
return sendAPIError(e, http.StatusBadRequest, fmt.Sprintf("error compiling job: %v", err))
|
||||
return sendAPIError(e, http.StatusBadRequest, err.Error())
|
||||
}
|
||||
|
||||
logger = logger.With().Str("job_id", authoredJob.JobID).Logger()
|
||||
|
Loading…
x
Reference in New Issue
Block a user