Skip to content

Fix Panic When API Returns Error With Empty Messages Slice#772

Merged
cwarden merged 1 commit intoForceCLI:masterfrom
cwarden:create-panic
Mar 5, 2026
Merged

Fix Panic When API Returns Error With Empty Messages Slice#772
cwarden merged 1 commit intoForceCLI:masterfrom
cwarden:create-panic

Conversation

@cwarden
Copy link
Member

@cwarden cwarden commented Mar 5, 2026

Check len(emessages) > 0 before accessing emessages[0] in record
create and password change commands to prevent index out of range panic.

Check len(emessages) > 0 before accessing emessages[0] in record
create and password change commands to prevent index out of range panic.
@cwarden cwarden merged commit d171f43 into ForceCLI:master Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant