Improve logs (+add toasts) on save calls

- Fixes #2429
This commit is contained in:
Wolfsblvt
2024-06-28 03:28:16 +02:00
parent b8295ac8f5
commit 54e111886b
6 changed files with 49 additions and 26 deletions

View File

@ -5775,6 +5775,7 @@ export async function saveChat(chat_name, withMetadata, mesId) {
contentType: 'application/json',
success: function (data) { },
error: function (jqXHR, exception) {
toastr.error('Check the server connection and reload the page to prevent data loss.', 'Chat could not be saved');
console.log(exception);
console.log(jqXHR);
},