mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-5238: Show error on execute invalid slash command. (#5057)
This commit is contained in:
@@ -48,7 +48,14 @@ export function executeCommand(message, args, success, error) {
|
||||
msg = '/shortcuts';
|
||||
}
|
||||
}
|
||||
Client.executeCommand(msg, args, success, error);
|
||||
Client.executeCommand(msg, args, success,
|
||||
(err) => {
|
||||
AsyncClient.dispatchError(err, 'executeCommand');
|
||||
|
||||
if (error) {
|
||||
error(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export function setChannelAsRead(channelIdParam) {
|
||||
|
||||
Reference in New Issue
Block a user