mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
Fix throw on /gen
This commit is contained in:
parent
88fab65a8f
commit
0aede54cf1
@ -4415,7 +4415,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
|
||||
if (data?.response) {
|
||||
toastr.error(data.response, 'API Error');
|
||||
}
|
||||
throw data?.response;
|
||||
throw new Error(data?.response);
|
||||
}
|
||||
|
||||
//const getData = await response.json();
|
||||
|
Loading…
Reference in New Issue
Block a user