Skip to content

Incorrect error message when removing message from empty messageHistory #78

@MiriamScharnke

Description

@MiriamScharnke

When I try to remove a message from an empty messageHistory, the error message is technically incorrect:

>> messages = messageHistory;
>> removeMessage(messages,1)
Error using messageHistory/removeMessage (line 217)
Index exceeds the number of array elements. Index
must be less than or equal to 0.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions