mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
stop executeSlashCommand if parser throws
This commit is contained in:
@ -1777,6 +1777,7 @@ async function executeSlashCommands(text, handleParserErrors = true, scope = nul
|
|||||||
'SlashCommandParserError',
|
'SlashCommandParserError',
|
||||||
{ escapeHtml:false, timeOut: 10000, onclick:()=>callPopup(toast, 'text') },
|
{ escapeHtml:false, timeOut: 10000, onclick:()=>callPopup(toast, 'text') },
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user