Skip to content

Commit 515ec2b

Browse files
committed
Print error message in test failure assertion
1 parent e054e70 commit 515ec2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function generateTestFile (t: tape.Test, content: string): tmp.FileResult {
2626
try {
2727
fs.writeFileSync(file.name, content);
2828
} catch (err) {
29-
t.fail('error writing test file');
29+
t.fail(`error writing test file: ${err.message}`);
3030
}
3131

3232
return file;

0 commit comments

Comments
 (0)