From 626ef99e803ef0a75a8bd6dff5915152b0957540 Mon Sep 17 00:00:00 2001 From: Jordan Benyon Date: Thu, 20 Jun 2024 20:54:58 +0100 Subject: [PATCH] Bug fix for 'cannot use in' operator to search 'message' in null.' as error could possible be null --- src/generate-report.ts | 1 + 1 file changed, 1 insertion(+) 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 ) {