Manager: fix bug in sendAPIError()
formatting code
Formatting parameters weren't passed to `fmt.Sprintf()` correctly.
This commit is contained in:
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{
|
||||
|
Loading…
Reference in New Issue
Block a user