Skip to content

Commit

Permalink
added error in resolveModifiers if no modifiers were added
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed May 6, 2015
1 parent 2400b39 commit 710c927
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extra-resources/keywords.js
Expand Up @@ -37,6 +37,9 @@ function resolveModifiers(entity, data) {
var modifier = resolveModifier(entity, modifierData);
result.push({ res: modifierData.res, object: modifier });
}
if (result.length === 0) {
throw new Error("resolveModifiers expected at least one modifier, none found.");
}
return result;
}

Expand Down

0 comments on commit 710c927

Please sign in to comment.