You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace silent return with os.Exit(1) on auth/config failures
Commands cmd/test.go, cmd/import.go, cmd/importDir.go, and
cmd/importURL.go used plain return statements inside error branches
(config read failure, nil localConfig, NewClient failure). Because
Cobra treats a normal Run return as success, the process exited with
status 0, causing CI/CD pipelines to report false-positive success.
Replace every such return with os.Exit(1) so that:
- missing/corrupt config file → exit 1
- missing login session (localConfig == nil) → exit 1
- client initialisation failure (NewClient) → exit 1
- ValidationError from ImportDirectory → exit 1
No user-visible messages were changed.
Fixes#361
Signed-off-by: Priyanshubhartistm <bhartipriyanshustm@gmail.com>
0 commit comments