Skip to content

Commit 888f85a

Browse files
Travis Paynepetermetz
Travis Payne
authored andcommitted
feat: adding additional info into err logs
Closes: #295 Signed-off-by: Travis Payne <[email protected]>
1 parent 7125d10 commit 888f85a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cactus-cmd-api-server/src/test/typescript/benchmark/artillery-api-benchmark.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ test("Start API server, and run Artillery benchmark test.", async (t: Test) => {
135135
try {
136136
unlinkSync("./report.json");
137137
} catch (err) {
138-
log.error(err);
138+
log.error(`Could not remove report.json from filesystem.`, err);
139139
}
140140
}
141141
});
@@ -145,7 +145,7 @@ async function fireArtilleryCommand(t: Test) {
145145
const artilleryCommand = `artillery run ${artilleryScriptLocation} --output report.json`;
146146
await shell_exec(artilleryCommand);
147147
} catch (err) {
148-
log.error(err);
148+
log.error(`Failed to run artilerry execution.`, err);
149149
t.fail(`Test failed. Err: ${err}`);
150150
}
151151
}

0 commit comments

Comments
 (0)