Skip to content

Commit

Permalink
fix: warning instead of crash on untagged interval
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed May 20, 2023
1 parent 2dcd111 commit cbde55a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/goosebay.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,10 @@ class GooseBay {
// Log raw data
if (VERBOSE) console.dir(n);
const { start, end, tags } = n;
if (!tags) {
console.error('No tags- skipping ' + JSON.stringify(n));
continue;
}
const { item_id, item_name, customer_id, customer_name, rate, mainTag } = this.findcode(tags);
// findcode will throw

Expand Down

0 comments on commit cbde55a

Please sign in to comment.