Skip to content

Commit

Permalink
feat: adding additional info into err logs
Browse files Browse the repository at this point in the history
Closes: #295

Signed-off-by: Travis Payne <travis.payne@accenture.com>
  • Loading branch information
Travis Payne authored and petermetz committed Apr 28, 2021
1 parent 7125d10 commit 888f85a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ test("Start API server, and run Artillery benchmark test.", async (t: Test) => {
try {
unlinkSync("./report.json");
} catch (err) {
log.error(err);
log.error(`Could not remove report.json from filesystem.`, err);
}
}
});
Expand All @@ -145,7 +145,7 @@ async function fireArtilleryCommand(t: Test) {
const artilleryCommand = `artillery run ${artilleryScriptLocation} --output report.json`;
await shell_exec(artilleryCommand);
} catch (err) {
log.error(err);
log.error(`Failed to run artilerry execution.`, err);
t.fail(`Test failed. Err: ${err}`);
}
}

0 comments on commit 888f85a

Please sign in to comment.