Expressions: Let the user know if classification failed

Send a message if the classifer fails and fallback to the default
expression.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-04-13 01:29:54 -04:00
parent 8c4dd6ce1e
commit 913085ba74

View File

@@ -1055,7 +1055,8 @@ async function getExpressionLabel(text) {
} }
} }
} catch (error) { } catch (error) {
console.log(error); toastr.info("Could not classify expression. Check the console or your backend for more information.")
console.error(error);
return getFallbackExpression(); return getFallbackExpression();
} }
} }