mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Log errors in generic error handler (#3482)
This commit is contained in:
@@ -5,6 +5,7 @@ export function useErrorHandling() {
|
|||||||
const toast = useToastStore()
|
const toast = useToastStore()
|
||||||
|
|
||||||
const toastErrorHandler = (error: any) => {
|
const toastErrorHandler = (error: any) => {
|
||||||
|
console.error(error)
|
||||||
toast.add({
|
toast.add({
|
||||||
severity: 'error',
|
severity: 'error',
|
||||||
summary: t('g.error'),
|
summary: t('g.error'),
|
||||||
|
|||||||
Reference in New Issue
Block a user