Skip to content

Commit

Permalink
Error more gently in the create command
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 23, 2015
1 parent 69229e2 commit 53d56a1
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -40,6 +40,12 @@ else if (!scriptEntry.hasObject("traits")
else arg.reportUnhandled();
}

if (!scriptEntry.hasObject("name")) {
throw new InvalidArgumentsException("Must specify a name!");
}
if (!scriptEntry.hasObject("entity_type")) {
throw new InvalidArgumentsException("Must specify an entity type!");
}
}

@Override
Expand Down

0 comments on commit 53d56a1

Please sign in to comment.