Skip to content

Commit

Permalink
fix(api): do not use nil value to create error (#4197)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored and yesnault committed Apr 23, 2019
1 parent a7bea2b commit df8a5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/application_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (api *API) updateVariableInApplicationHandler() service.Handler {

variableBefore, err := application.LoadVariableByID(api.mustDB(), app.ID, newVar.ID, application.WithClearPassword())
if err != nil {
return sdk.WrapError(err, "cannot load variable %d", variableBefore.ID)
return sdk.WrapError(err, "cannot load variable with id %d", newVar.ID)
}

tx, err := api.mustDB().Begin()
Expand Down

0 comments on commit df8a5d4

Please sign in to comment.