From a6233ab6d5fb6c3943d6158939cc594173192d6d Mon Sep 17 00:00:00 2001 From: garrettladley Date: Sat, 15 Jun 2024 20:33:55 -0400 Subject: [PATCH] better err message --- backend/integrations/oauth/soth/sothic/sothic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/integrations/oauth/soth/sothic/sothic.go b/backend/integrations/oauth/soth/sothic/sothic.go index ab6d7b48..9768c99b 100644 --- a/backend/integrations/oauth/soth/sothic/sothic.go +++ b/backend/integrations/oauth/soth/sothic/sothic.go @@ -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))