mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't show empty toasts in slash command executor
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user