mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #2508 from Therosin/staging
Includes captioning error messages in toast
This commit is contained in:
@@ -333,8 +333,9 @@ async function getCaptionForFile(file, prompt, quiet) {
|
|||||||
return caption;
|
return caption;
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
toastr.error('Failed to caption image.');
|
const errorMessage = error.message || 'Unknown error';
|
||||||
console.log(error);
|
toastr.error(errorMessage, "Failed to caption image.");
|
||||||
|
console.error(error);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
Reference in New Issue
Block a user