pledbrook / lazybones

A simple project creation tool that uses packaged project templates.
Apache License 2.0
615 stars 104 forks source link

Inelegant NPE when forgetting the path #101

Closed glaforge closed 10 years ago

glaforge commented 10 years ago

Discovering Lazybones, I tried to create a Ratpack template. I did lazybones create ratpack, but forgetting the path (ie. the dot). And the output is an unfriendly NPE. It gave me a hint and I guessed it was missing the path, but a nicer error message without a stacktrace would be better.

pledbrook commented 10 years ago

The argument range is incorrect. Simple fix. Will just need to add an integration test to cover this case.