mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-06 06:38:33 +01:00
Don't show empty toasts in slash command executor
This commit is contained in:
parent
54e111886b
commit
043eead149
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user