diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 9c79ab46d..8284b17f8 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -3296,7 +3296,7 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) { result = new SlashCommandClosureResult(); result.isError = true; result.errorMessage = e.message; - if (e.cause !== 'abort') { + if (e.cause !== 'abort' && e.message) { toastr.error(e.message); } } finally {