Skip to content

Commit

Permalink
better err message
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 16, 2024
1 parent a7ec523 commit a6233ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/integrations/oauth/soth/sothic/sothic.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func GetFromSession(key string, c *fiber.Ctx) (string, error) {
func getSessionValue(store *session.Session, key string) (string, error) {
value := store.Get(key)
if value == nil {
return "", errors.New("could not find a matching session for this request")
return "", fmt.Errorf("key %s not found in session", key)
}

decrypted, err := decrypter(value.(string))
Expand Down

0 comments on commit a6233ab

Please sign in to comment.