@dnax/core 0.74.6 → 0.74.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/hono.ts +3 -0
- package/package.json +1 -1
package/app/hono.ts
CHANGED
|
@@ -792,6 +792,9 @@ function HonoInstance(): typeof app {
|
|
|
792
792
|
success: false,
|
|
793
793
|
meta: err?.meta || {},
|
|
794
794
|
};
|
|
795
|
+
if (plugins?.sentry) {
|
|
796
|
+
plugins?.sentry?.captureException(err) ?? null;
|
|
797
|
+
}
|
|
795
798
|
if (Cfg?.api?.onError && typeof Cfg?.api?.onError == "function") {
|
|
796
799
|
try {
|
|
797
800
|
await Cfg?.api?.onError(errorFormated, err);
|