Skip to content

Commit

Permalink
Add Detailed Execution Error Reporting (#308)
Browse files Browse the repository at this point in the history
* added improved error handling

* Update error formatting and safely recurse only when parent exists

* Add more tests and use regex for specific error message parsing

* Add error.cause for annotated errors for easier debugging

* Stop recursion when library is defined instead of on instanceof

* Add locators to AnnotatedError and persist error properties on instances

* Add test to check for accessible properties on annotated error

* Remove message as constructor arg and re-use info on originalError instead

* Refactor identifier checking to avoid duplicate TS cast

* Remove unused coveralls dev dependency

---------

Co-authored-by: natjoe4 <njjones@mitre.org>
Co-authored-by: mgramigna <mgramigna@mitre.org>
  • Loading branch information
3 people authored Mar 20, 2023
1 parent e528df3 commit 7f63329
Show file tree
Hide file tree
Showing 10 changed files with 393 additions and 389 deletions.
2 changes: 1 addition & 1 deletion bin/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const path = require('path');
const fs = require('fs');
const browserify = require('browserify');

console.log('Browserifing cql4browsers...');
console.log('Browserifying cql4browsers...');
const c4bpath = path.join(__dirname, '..', 'examples', 'browser', 'cql4browsers.js');
const outputJsFile = fs.createWriteStream(c4bpath);
browserify(path.join(__dirname, '..', 'examples', 'browser', 'simple-browser-support.js'))
Expand Down
137 changes: 94 additions & 43 deletions examples/browser/cql4browsers.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7f63329

Please sign in to comment.