@@ -88,7 +88,7 @@ export default function ImportAccountModalProvider({
8888 const triggerError = ( e ) => {
8989 Sentry . withScope ( function ( scope ) {
9090 scope . setLevel ( "fatal" ) ;
91- Sentry . captureException ( e ) ;
91+ Sentry . captureException ( e ?. response ?. data ) ;
9292 } ) ;
9393 console . error ( e ) ;
9494 notificationAdded ( {
@@ -159,7 +159,7 @@ export default function ImportAccountModalProvider({
159159 } catch ( e ) {
160160 Sentry . withScope ( function ( scope ) {
161161 scope . setLevel ( "fatal" ) ;
162- Sentry . captureException ( e ) ;
162+ Sentry . captureException ( e ?. response ?. data ) ;
163163 } ) ;
164164 console . error ( e ) ;
165165 notificationAdded ( {
@@ -243,7 +243,7 @@ export default function ImportAccountModalProvider({
243243 console . error ( e ) ;
244244 Sentry . withScope ( function ( scope ) {
245245 scope . setLevel ( "fatal" ) ;
246- Sentry . captureException ( e ) ;
246+ Sentry . captureException ( e ?. response ?. data ) ;
247247 } ) ;
248248 notificationAdded ( {
249249 text : "Telegram account already imported in this vault or in another one" ,
@@ -304,7 +304,7 @@ export default function ImportAccountModalProvider({
304304 console . error ( e ) ;
305305 Sentry . withScope ( function ( scope ) {
306306 scope . setLevel ( "fatal" ) ;
307- Sentry . captureException ( e ) ;
307+ Sentry . captureException ( e ?. response ?. data ) ;
308308 } ) ;
309309 notificationAdded ( {
310310 text : "Github account already imported in this vault or in another one" ,
@@ -367,7 +367,7 @@ export default function ImportAccountModalProvider({
367367 console . error ( e ) ;
368368 Sentry . withScope ( function ( scope ) {
369369 scope . setLevel ( "fatal" ) ;
370- Sentry . captureException ( e ) ;
370+ Sentry . captureException ( e ?. response ?. data ) ;
371371 } ) ;
372372 notificationAdded ( {
373373 text : "Twitter account already imported in this vault or in another one" ,
@@ -429,7 +429,7 @@ export default function ImportAccountModalProvider({
429429 console . error ( e ) ;
430430 Sentry . withScope ( function ( scope ) {
431431 scope . setLevel ( "fatal" ) ;
432- Sentry . captureException ( e ) ;
432+ Sentry . captureException ( e ?. response ?. data ) ;
433433 } ) ;
434434 notificationAdded ( {
435435 text : "Twitter account already imported in this vault or in another one" ,
0 commit comments