PLT-5238: Show error on execute invalid slash command. (#5057)

This commit is contained in:
George Goldberg
2017-01-13 13:42:20 +00:00
committed by enahum
parent b6cba7a07b
commit 0196137dec

View File

@@ -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) {