Manager: fix bug in sendAPIError() formatting code

Formatting parameters weren't passed to `fmt.Sprintf()` correctly.
This commit is contained in:
Sybren A. Stüvel 2022-05-31 11:10:49 +02:00
parent 11a407d26c
commit 6e3667225a

@ -166,7 +166,7 @@ func NewFlamenco(
func sendAPIError(e echo.Context, code int, message string, args ...interface{}) error {
if len(args) > 0 {
// Only interpret 'message' as format string if there are actually format parameters.
message = fmt.Sprintf(message, args)
message = fmt.Sprintf(message, args...)
}
apiErr := api.Error{