mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
add click hint on parser error toast
This commit is contained in:
@ -1616,9 +1616,10 @@ async function executeSlashCommands(text, handleParserErrors = true, scope = nul
|
|||||||
<div>${ex.message}</div>
|
<div>${ex.message}</div>
|
||||||
<div>Line: ${ex.line} Column: ${ex.column}</div>
|
<div>Line: ${ex.line} Column: ${ex.column}</div>
|
||||||
<pre style="text-align:left;">${ex.hint}</pre>
|
<pre style="text-align:left;">${ex.hint}</pre>
|
||||||
`;
|
`;
|
||||||
|
const clickHint = '<p>Click to see details</p>';
|
||||||
toastr.error(
|
toastr.error(
|
||||||
toast,
|
`${toast}${clickHint}`,
|
||||||
'SlashCommandParserError',
|
'SlashCommandParserError',
|
||||||
{ escapeHtml:false, timeOut: 10000, onclick:()=>callPopup(toast, 'text') },
|
{ escapeHtml:false, timeOut: 10000, onclick:()=>callPopup(toast, 'text') },
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user