Skip to content

Commit

Permalink
Capture transaction signing/sending exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Dec 14, 2021
1 parent 249be0b commit d46eb71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/modals/SendModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ import {
Amount,
} from '@nimiq/vue-components';
import { parseRequestLink, AddressBook, Utf8Tools, CurrencyInfo, ValidationUtils } from '@nimiq/utils';
import { captureException } from '@sentry/vue';
import Config from 'config';
import Modal from './Modal.vue';
import ContactShortcuts from '../ContactShortcuts.vue';
import ContactBook from '../ContactBook.vue';
Expand Down Expand Up @@ -632,7 +634,8 @@ export default defineComponent({
}
}, SUCCESS_REDIRECT_DELAY);
} catch (error) {
// console.debug(error);
if (Config.reportToSentry) captureException(error);
else console.error(error); // eslint-disable-line no-console
// Show error screen
statusState.value = State.WARNING;
Expand Down

0 comments on commit d46eb71

Please sign in to comment.