Fix eval error logging (#3206)

* Update app/client/src/utils/WidgetFactory.tsx
This commit is contained in:
Hetu Nandu 2021-02-25 17:23:06 +05:30 committed by GitHub
parent 647151e527
commit 4a557309ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,14 +61,20 @@ const evalErrorHandler = (errors: EvalError[]) => {
break;
}
case EvalErrorTypes.EVAL_TRIGGER_ERROR: {
log.debug(error);
Toaster.show({
text: `Error occurred when executing trigger: ${error.message}`,
variant: Variant.danger,
});
break;
}
case EvalErrorTypes.EVAL_ERROR: {
log.debug(error);
break;
}
default: {
Sentry.captureException(error);
log.debug(error);
}
}
});