mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Fix empty toast suppression
This commit is contained in:
parent
46830a27d0
commit
e713b32bdc
@ -3295,9 +3295,9 @@ export async function executeSlashCommandsOnChatInput(text, options = {}) {
|
||||
document.querySelector('#form_sheld').classList.add('script_error');
|
||||
result = new SlashCommandClosureResult();
|
||||
result.isError = true;
|
||||
result.errorMessage = e.message;
|
||||
if (e.cause !== 'abort' && e.message) {
|
||||
toastr.error(e.message);
|
||||
result.errorMessage = e.message || 'An unknown error occurred';
|
||||
if (e.cause !== 'abort') {
|
||||
toastr.error(result.errorMessage);
|
||||
}
|
||||
} finally {
|
||||
delay(1000).then(() => clearCommandProgressDebounced());
|
||||
|
Loading…
Reference in New Issue
Block a user