From bdfe9c16f10d38e25257c0e6682dcfe4b406f907 Mon Sep 17 00:00:00 2001 From: lohit Date: Fri, 8 Nov 2024 16:57:37 +0530 Subject: [PATCH] fix: cli run-summary count fix for requests with ECONNREFUSED error (#3451) * fix: cli run summary for requests with ECONNREFUSED error * feat: updates --- packages/bruno-cli/src/runner/run-single-request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index cb59c78ba..cfdd8dd8c 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -246,7 +246,7 @@ const runSingleRequest = async function ( data: null, responseTime: 0 }, - error: err.message, + error: err?.message || err?.errors?.map(e => e?.message)?.at(0) || err?.code || 'Request Failed!', assertionResults: [], testResults: [], nextRequestName: nextRequestName