Skip to content

Commit

Permalink
Print error message in test failure assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Oct 31, 2022
1 parent e054e70 commit 515ec2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function generateTestFile (t: tape.Test, content: string): tmp.FileResult {
try {
fs.writeFileSync(file.name, content);
} catch (err) {
t.fail('error writing test file');
t.fail(`error writing test file: ${err.message}`);
}

return file;
Expand Down

0 comments on commit 515ec2b

Please sign in to comment.