mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-19 11:32:53 +00:00
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
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user