Skip to content

Commit

Permalink
Merge pull request #52 from QuentinPerez/format
Browse files Browse the repository at this point in the history
handler.go:300: no formatting directive in Sprintf call
  • Loading branch information
Aeneas committed Feb 3, 2016
2 parents e246982 + 6ee1376 commit 300ef6a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions oauth/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 {
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 300ef6a

Please sign in to comment.