From 6ee13768c1a2f4cfb07fd698e202f239b850a5cf Mon Sep 17 00:00:00 2001 From: Quentin Perez Date: Wed, 3 Feb 2016 18:42:17 +0100 Subject: [PATCH] handler.go:300: no formatting directive in Sprintf call --- oauth/handler/handler.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/oauth/handler/handler.go b/oauth/handler/handler.go index 678e0209fe2..54ac4fed399 100644 --- a/oauth/handler/handler.go +++ b/oauth/handler/handler.go @@ -3,6 +3,10 @@ package handler import ( "encoding/json" "fmt" + "net/http" + "net/url" + "time" + "github.com/RangelReale/osin" log "github.com/Sirupsen/logrus" "github.com/go-errors/errors" @@ -19,9 +23,6 @@ import ( "github.com/ory-am/ladon/policy" osinStore "github.com/ory-am/osin-storage/storage" "github.com/pborman/uuid" - "net/http" - "net/url" - "time" ) func DefaultConfig() *osin.ServerConfig { @@ -297,7 +298,7 @@ func (h *Handler) AuthorizeHandler(w http.ResponseWriter, r *http.Request) { return } if stateData.IsExpired() { - http.Error(w, fmt.Sprintf("This session expired.", err), http.StatusBadRequest) + http.Error(w, fmt.Sprintf("This session expired %v.", err), http.StatusBadRequest) } r.Form = stateData.ToURLValues() }