Skip to content

Commit 2de9b87

Browse files
committed
consider errored request as a collection run fail
1 parent 178773d commit 2de9b87

File tree

1 file changed

+1
-1
lines changed
  • packages/bruno-cli/src/commands

1 file changed

+1
-1
lines changed

packages/bruno-cli/src/commands/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ const handler = async function (argv) {
617617
}
618618
}
619619

620-
if (summary.failedAssertions + summary.failedTests + summary.failedRequests > 0) {
620+
if ((summary.failedAssertions + summary.failedTests + summary.failedRequests > 0) || (summary?.errorRequests > 0)) {
621621
process.exit(constants.EXIT_STATUS.ERROR_FAILED_COLLECTION);
622622
}
623623
} catch (err) {

0 commit comments

Comments
 (0)