nlf / mudskipper

a resourceful router plugin for hapi
15 stars 3 forks source link

Adding a child can fail if the child doesn't exist #5

Closed nlf closed 10 years ago

nlf commented 10 years ago

When defining children as a string, there is no obvious error message if the child type does not exist. There needs to be an assertion to check this and throw a meaningful error.