Skip to content

Commit 252e469

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

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,7 @@ import {
239239
Amount,
240240
} from '@nimiq/vue-components';
241241
import { parseRequestLink, AddressBook, Utf8Tools, CurrencyInfo, ValidationUtils } from '@nimiq/utils';
242+
import Config from 'config';
242243
import Modal from './Modal.vue';
243244
import ContactShortcuts from '../ContactShortcuts.vue';
244245
import ContactBook from '../ContactBook.vue';
@@ -261,6 +262,7 @@ import {
261262
isValidDomain as isValidUnstoppableDomain,
262263
resolve as resolveUnstoppableDomain,
263264
} from '../../lib/UnstoppableDomains';
265+
import { captureException } from '@sentry/minimal';
264266
265267
export enum RecipientType {
266268
CONTACT,
@@ -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);
636639
637640
// Show error screen
638641
statusState.value = State.WARNING;

0 commit comments

Comments
 (0)