From 1fbf3e5cd648534905962cb5369f7cb246e10ba0 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 27 Dec 2025 11:23:25 +0800 Subject: [PATCH] style: streamline authentication error handling in config validation - Simplify authentication error message in config validation Signed-off-by: appleboy --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index c552769..182df12 100644 --- a/plugin.go +++ b/plugin.go @@ -94,7 +94,7 @@ func (p Plugin) validateConfig() error { hasRemoteToken := p.RemoteToken != "" if !hasUserAuth && !hasRemoteToken { - return errors.New("authentication required: provide either (user + token) or remote-token") + return errors.New("authentication required") } return nil