We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ed142 commit e2837b0Copy full SHA for e2837b0
tests/test-common.js
@@ -786,13 +786,15 @@ async function compareExpectedError(test, err) {
786
result = getJsonLdErrorCode(err);
787
assert.ok(err, 'no error present');
788
assert.strictEqual(result, expect);
789
- } catch(err) {
+ } catch(_err) {
790
if(options.bailOnError) {
791
console.log('\nTEST FAILED\n');
792
console.log('EXPECTED: ' + expect);
793
console.log('ACTUAL: ' + result);
794
}
795
- throw err;
+ // log the unexpected error to help with debugging
796
+ console.log('Unexpected error:', err);
797
+ throw _err;
798
799
800
0 commit comments