Includes captioning error messages in toast

This commit is contained in:
Theros
2024-07-10 23:41:06 +01:00
parent adc3eeea51
commit fee36419ac

View File

@ -333,7 +333,7 @@ async function getCaptionForFile(file, prompt, quiet) {
return caption; return caption;
} }
catch (error) { catch (error) {
toastr.error('Failed to caption image.'); toastr.error(`Failed to caption image. ${error}`);
console.log(error); console.log(error);
return ''; return '';
} }