Skip to content

Commit

Permalink
Fixing logging
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Traut committed Mar 27, 2022
1 parent ff9f408 commit 0e417fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dotosb",
"version": "1.6.3",
"version": "1.6.4",
"description": "Simple, dependency free osb file parser",
"main": "index.js",
"keywords": ["parser", "text", "file", "osb", "motion-design", "no-deps"],
Expand Down
2 changes: 0 additions & 2 deletions src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ function isValid(event) {


if(!type) {
console.log(event);
throw `This event type is not allowed '${event.type}'\nAllowed events: ${EVENT_TYPES.values()}\n`;
}

const sval_size = Array.isArray(event.start_values) ? event.start_values.length : 1;
const eval_size = Array.isArray(event.end_values) ? event.start_values.length : 1;

if(sval_size != type) {
console.log(event);
throw `Start value(s) given for the event of type '${event.type}' are not valid\n given: ${sval_size} -> required: ${type}\n`;
}

Expand Down

0 comments on commit 0e417fa

Please sign in to comment.