Don't show empty toasts in slash command executor

This commit is contained in:
Cohee 2024-06-28 08:06:33 +00:00
parent 54e111886b
commit 043eead149

View File

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