rename err.BindArgument() to err.Put()

This commit is contained in:
Adrien Marquès 2018-10-01 21:21:33 +02:00
parent c813c5638b
commit 332d78badd
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ func (rctl RootController) Get(d i.Arguments) i.Response {
if !ok {
r.Err = e.InvalidParam
r.Err.BindArgument("url")
r.Err.Put("url")
return *r
}

View File

@ -34,7 +34,7 @@ func (tctl TokenController) Post(d i.Arguments) i.Response {
role, ok := d["role"].(string)
if !ok {
r.Err = e.InvalidParam
r.Err.BindArgument("url")
r.Err.Put("url")
return *r
}