From 07f1f07dcfa7cfa5c63e1cd4b2c95d3719516119 Mon Sep 17 00:00:00 2001 From: nutcas3 Date: Fri, 17 Apr 2026 16:32:16 +0300 Subject: [PATCH] refactor: Update enhanced subscribers error handling to return error instead of nil - Change HandleSubscribers call to ignore return value with blank identifier - Return explicit error for unknown command instead of propagating HandleSubscribers result - Improve error clarity by returning formatted error message --- apps/cli/internal/commands/enhanced_subscribers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/cli/internal/commands/enhanced_subscribers.go b/apps/cli/internal/commands/enhanced_subscribers.go index 639658c..fb9d67a 100644 --- a/apps/cli/internal/commands/enhanced_subscribers.go +++ b/apps/cli/internal/commands/enhanced_subscribers.go @@ -32,7 +32,8 @@ func HandleSubscribersEnhanced(args []string, config *types.CLIConfig) error { default: u := newUIContext(config) u.errorln("Unknown subscribers command: " + command) - return HandleSubscribers(nil, config) + _ = HandleSubscribers(nil, config) + return fmt.Errorf("unknown subscribers command: %s", command) } }