File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class PenetrationTestService {
3636 } ) . catch ( ( error : Error ) => {
3737 results . details . push ( {
3838 description : `Read from ${ collection } collection` ,
39- error : error . message
39+ error : error ? .message
4040 } ) ;
4141 } ) . finally ( ( ) => {
4242 this . debugService . log ( 'read results:' , results ) ;
@@ -68,7 +68,7 @@ export class PenetrationTestService {
6868 } ) . catch ( ( error : Error ) => {
6969 results . details . push ( {
7070 description : `Write to ${ collection } collection` ,
71- error : error . message
71+ error : error ? .message
7272 } ) ;
7373 } ) . finally ( ( ) => {
7474 this . debugService . log ( 'write results:' , results ) ;
@@ -114,7 +114,7 @@ export class PenetrationTestService {
114114 } ) . catch ( ( error : Error ) => {
115115 results . details . push ( {
116116 description : 'Authentication' ,
117- error : error . message
117+ error : error ? .message
118118 } ) ;
119119 } ) . finally ( ( ) => {
120120 //this.authService.signOut(); // can be omitted since it's done at the end of the following write test
@@ -134,7 +134,7 @@ export class PenetrationTestService {
134134 } ) . catch ( ( error : Error ) => {
135135 results . details . push ( {
136136 description : 'Authentication' ,
137- error : error . message
137+ error : error ? .message
138138 } ) ;
139139 } ) . finally ( ( ) => {
140140 this . authService . signOut ( ) ;
You can’t perform that action at this time.
0 commit comments