Improve error message when semantic search is not enabled with genai (#14528)

This commit is contained in:
Josh Hawkins
2024-10-23 07:14:50 -05:00
committed by GitHub
parent fc59c83e16
commit 7afc1e9762
2 changed files with 3 additions and 3 deletions

View File

@@ -368,9 +368,9 @@ function ObjectDetailsTab({
);
}
})
.catch(() => {
.catch((error) => {
toast.error(
`Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description`,
`Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description: ${error.response.data.message}`,
{
position: "top-center",
},