Skip to content

Commit ac4ad8e

Browse files
committed
Update penetration-test.service.ts
1 parent 8ba6a58 commit ac4ad8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/services/penetration-test.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)