utils/axios: fix exception name

This commit is contained in:
vchikalkin 2023-07-11 19:28:27 +03:00
parent 908b8d4a7b
commit d377db0cc0

View File

@ -28,7 +28,7 @@ export async function withHandleError<T>(fn: Promise<T>) {
(Object.keys(opts) as Array<keyof typeof opts>).forEach((key) => {
scope.setExtra(key, JSON.stringify(opts[key]));
});
captureException(message);
captureException(error_);
});
throw new Error(message);