Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
log error from tmpdir only once at max
  • Loading branch information
RaisinTen committed Jun 7, 2021
commit befac4bc7874d2f9c5eeeae6904633efa27e2cd7
8 changes: 5 additions & 3 deletions test/common/tmpdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ function onexit() {
console.error('See http://nfs.sourceforge.net/#faq_d2 for details.');
}

// Additionally logging err, just in case throwing err gets overshadowed by
// an error from a test failure.
// Manually logging err instead of throwing it, so that it doesn't get
// overshadowed by an error from a test failure.
console.error(err);

throw err;
// Setting the process exit code to a non-zero exit code, so that this gets
// marked as `not ok` during a CI run.
process.exitCode ||= 1;
}
}

Expand Down