From 4d38ca3a22d136f11556f00a3fe349001aadf7c9 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 24 Apr 2026 16:34:10 +0200 Subject: [PATCH] Don't silenty fail on auth config file corruption --- server/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/crypto.go b/server/crypto.go index ea012481..1bdc97e9 100644 --- a/server/crypto.go +++ b/server/crypto.go @@ -42,7 +42,7 @@ func CreateAuthenticator(path string, authOptions *AuthOptions) (*Authenticator, var auth Authenticator auth.path = path if err := json.Unmarshal(jsonBytes, &auth); err != nil { - log.Printf("Could not parse .silverbullet.auth.json, resetting") + return nil, fmt.Errorf("could not parse %s: %w (remove or fix the file to proceed)", path, err) } if err := auth.init(authOptions); err != nil { return nil, err