Manager: remove superfluous "error compiling job: " prefix from message

The wrapped error already mentioned it was about job compilation.
This commit is contained in:
Sybren A. Stüvel 2022-08-31 16:22:59 +02:00
parent fa69cc102b
commit 25dd7b214b

View File

@ -99,7 +99,7 @@ func (f *Flamenco) SubmitJob(e echo.Context) error {
case err != nil: case err != nil:
logger.Warn().Err(err).Msg("error compiling job") logger.Warn().Err(err).Msg("error compiling job")
// TODO: make this a more specific error object for this API call. // 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() logger = logger.With().Str("job_id", authoredJob.JobID).Logger()