diff --git a/src/generate-report.ts b/src/generate-report.ts index 95067e8..dee8f52 100644 --- a/src/generate-report.ts +++ b/src/generate-report.ts @@ -248,6 +248,7 @@ export class GenerateCtrfReport { if ( lastAttempt?.error !== undefined && + lastAttempt?.error !== null && 'message' in lastAttempt.error && 'stack' in lastAttempt.error ) {