Skip to content

Commit d46eb71

Browse files
committed
Capture transaction signing/sending exceptions
1 parent 249be0b commit d46eb71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/modals/SendModal.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ import {
239239
Amount,
240240
} from '@nimiq/vue-components';
241241
import { parseRequestLink, AddressBook, Utf8Tools, CurrencyInfo, ValidationUtils } from '@nimiq/utils';
242+
import { captureException } from '@sentry/vue';
243+
import Config from 'config';
242244
import Modal from './Modal.vue';
243245
import ContactShortcuts from '../ContactShortcuts.vue';
244246
import ContactBook from '../ContactBook.vue';
@@ -632,7 +634,8 @@ export default defineComponent({
632634
}
633635
}, SUCCESS_REDIRECT_DELAY);
634636
} catch (error) {
635-
// console.debug(error);
637+
if (Config.reportToSentry) captureException(error);
638+
else console.error(error); // eslint-disable-line no-console
636639
637640
// Show error screen
638641
statusState.value = State.WARNING;

0 commit comments

Comments
 (0)