From 80332680e51239ac03c4527bb097f6e42a84bfd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl-Einar=20Bergstr=C3=B8m?= Date: Tue, 13 Oct 2026 13:29:04 +0200 Subject: [PATCH] fix: a refused share key says what failed, not how to make one Co-Authored-By: Claude Opus 5.5 (1M context) --- internal/share/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/share/rules.go b/internal/share/rules.go index 6025437..38918db 100644 --- a/internal/share/rules.go +++ b/internal/share/rules.go @@ -53,7 +53,7 @@ func (r Rules) Check(key []byte) error { if len(has) == 0 { return nil } - return fmt.Errorf("its value has %s; share.keyRules needs %s. Use a random one, like openssl rand -base64 32 makes", + return fmt.Errorf("its value has %s; share.keyRules needs %s", strings.Join(has, " and "), strings.Join(needs, " and ")) }