refac: toast error

This commit is contained in:
Timothy Jaeryang Baek
2025-01-20 22:41:32 -08:00
parent af48f346f1
commit a863f98c53
52 changed files with 123 additions and 123 deletions

View File

@@ -119,7 +119,7 @@
url: OpenAIUrl
}
}).catch(async (error) => {
toast.error(error);
toast.error(`${error}`);
await setEmbeddingConfig();
return null;
});
@@ -142,7 +142,7 @@
const res = await updateRerankingConfig(localStorage.token, {
reranking_model: rerankingModel
}).catch(async (error) => {
toast.error(error);
toast.error(`${error}`);
await setRerankingConfig();
return null;
});
@@ -258,7 +258,7 @@
bind:show={showResetUploadDirConfirm}
on:confirm={async () => {
const res = await deleteAllFiles(localStorage.token).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});
@@ -272,7 +272,7 @@
bind:show={showResetConfirm}
on:confirm={() => {
const res = resetVectorDB(localStorage.token).catch((error) => {
toast.error(error);
toast.error(`${error}`);
return null;
});