From 332d78badd3d854e343554a9401699cd3e663655 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 1 Oct 2018 21:21:33 +0200 Subject: [PATCH] rename err.BindArgument() to err.Put() --- controller.plugin/ROOT/main.go | 2 +- controller.plugin/token/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.plugin/ROOT/main.go b/controller.plugin/ROOT/main.go index de033ae..a4d7781 100644 --- a/controller.plugin/ROOT/main.go +++ b/controller.plugin/ROOT/main.go @@ -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 } diff --git a/controller.plugin/token/main.go b/controller.plugin/token/main.go index 782b77b..2f67d51 100644 --- a/controller.plugin/token/main.go +++ b/controller.plugin/token/main.go @@ -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 }