@@ -93,12 +93,13 @@ export class WorkspaceService extends NativeService {
9393 try {
9494 this . idpWindow . close ( ) ;
9595 } catch ( e ) {
96- this . appService . logger ( e , LoggerLevel . ERROR , this ) ;
96+ this . appService . logger ( e , LoggerLevel . ERROR , this , e . stack ) ;
9797 }
9898 }
9999
100100 // Sometimes it can arrive here (tested) so the REAL way to block everything is to use the credential emit element!!!
101101 this . credentialEmit . emit ( { status : err . stack , accountName : session . account . accountName } ) ;
102+ this . appService . logger ( err , LoggerLevel . ERROR , this , err . stack ) ;
102103 throw new Error ( err ) ;
103104 } ) ;
104105 }
@@ -162,6 +163,8 @@ export class WorkspaceService extends NativeService {
162163 err . error . text . indexOf ( 'net::ERR_NAME_NOT_RESOLVED' ) > - 1 ||
163164 err . error . text . indexOf ( 'net::ERR_INTERNET_DISCONNECTED' ) > - 1 ||
164165 err . error . text . indexOf ( 'net::ERR_NETWORK_IO_SUSPENDED' ) > - 1 ) {
166+
167+ this . appService . logger ( 'There was a problem with your connection' , LoggerLevel . ERROR , this , err . error . text ) ;
165168 observer . error ( 'There was a problem with your connection. Please retry.' ) ;
166169 observer . complete ( ) ;
167170 } else {
@@ -339,7 +342,7 @@ export class WorkspaceService extends NativeService {
339342 // Save the federated one
340343 this . configurationService . updateWorkspaceSync ( workspace ) ;
341344 } catch ( err ) {
342- this . appService . logger ( err , LoggerLevel . ERROR , this ) ;
345+ this . appService . logger ( err , LoggerLevel . ERROR , this , err . stack ) ;
343346 this . appService . toast ( err , ToastLevel . ERROR ) ;
344347
345348 // Emit ko
@@ -387,7 +390,7 @@ export class WorkspaceService extends NativeService {
387390 this . credentialEmit . emit ( { status : 'ok' , accountName : account . accountName } ) ;
388391 }
389392 } catch ( err ) {
390- this . appService . logger ( err , LoggerLevel . ERROR , this ) ;
393+ this . appService . logger ( err , LoggerLevel . ERROR , this , err . stack ) ;
391394 this . appService . toast ( err , ToastLevel . ERROR ) ;
392395
393396 // Emit ko
@@ -453,7 +456,7 @@ export class WorkspaceService extends NativeService {
453456
454457 // Catch any error show it and return false
455458 this . appService . toast ( err , ToastLevel . WARN , 'Create new workspace' ) ;
456- this . appService . logger ( err , LoggerLevel . WARN , this ) ;
459+ this . appService . logger ( 'create new workspace error:' , LoggerLevel . WARN , this , err . stack ) ;
457460 return false ;
458461 }
459462 }
0 commit comments