From fb75d36c327dbf9ab5962db8aacd88e4f37b0c55 Mon Sep 17 00:00:00 2001 From: Michael Perrotte Date: Thu, 7 Nov 2019 02:23:13 -0500 Subject: [PATCH] chore: add throw in catch block of execute; fix for loop --- lib/execute.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/execute.js b/lib/execute.js index 76d5c60..d04ff11 100644 --- a/lib/execute.js +++ b/lib/execute.js @@ -46,7 +46,7 @@ module.exports = async function execute (latest = false) { try { const newResults = {} - for (let x = 0; x < scenarios.length; ++x) { + for (let x = 0; x < scenarios.length; x++) { const scenario = scenarios[x] const scenarioKey = scenario.name.toLowerCase() @@ -55,7 +55,7 @@ module.exports = async function execute (latest = false) { } log.info('scenario', scenario.name) - for (let i = 0; i < fixtures.length; ++i) { + for (let i = 0; i < fixtures.length; i++) { const fixture = fixtures[i] log.info('fixture', fixture) @@ -84,5 +84,6 @@ module.exports = async function execute (latest = false) { } } catch (e) { log.error(e) + throw e } }