Fix throw on /gen

0aede54cf1f69229ae6e7a1b681535e63f0082a3

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -4415,7 +4415,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
4415 if (data?.response) {4415 if (data?.response) {
4416 toastr.error(data.response, 'API Error');4416 toastr.error(data.response, 'API Error');
4417 }4417 }
4418 throw data?.response;4418 throw new Error(data?.response);
4419 }4419 }
44204420
4421 //const getData = await response.json();4421 //const getData = await response.json();