Skip to content

Commit 96fa216

Browse files
alnrclaude
andcommitted
fix: return ProjectID error directly in pause/resume commands
ProjectID() returns a plain ErrProjectNotSet, not an OpenAPI error, so wrapping it with cmdx.PrintOpenAPIError was a no-op and semantically misleading. Match the pattern used in create.go and update.go. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f5ad75b commit 96fa216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/cloudx/eventstreams/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func newSetStatusCmd(verb, status, short, long string) *cobra.Command {
3737

3838
projectID, err := h.ProjectID()
3939
if err != nil {
40-
return cmdx.PrintOpenAPIError(cmd, err)
40+
return err
4141
}
4242
streamID := args[0]
4343

0 commit comments

Comments
 (0)