From d069c0805ef3073c4fce08b5d3e6b96bf8716617 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 14 Dec 2016 18:57:12 +0800 Subject: [PATCH] fix fmt.Errorf error missing argument for Errorf("%q"): format reads arg 1, have only 0 args --- consul/session_endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/session_endpoint.go b/consul/session_endpoint.go index 65272d422..5e6c4ab23 100644 --- a/consul/session_endpoint.go +++ b/consul/session_endpoint.go @@ -53,7 +53,7 @@ func (s *Session) Apply(args *structs.SessionRequest, reply *string) error { } default: - return fmt.Errorf("Invalid session operation %q, args.Op") + return fmt.Errorf("Invalid session operation %q", args.Op) } }