backbone-named-routes icon indicating copy to clipboard operation
backbone-named-routes copied to clipboard

Use proper and explanatory exceptions if to few parameter as awaited were passed

Open okonet opened this issue 12 years ago • 0 comments

Right now passing too few or no params to a ...Path() function throws an error:

TypeError: Cannot call method 'charAt' of undefined

which isn't really descriptive + it breaks the rest of code.

I'd expect something like:

The route [route/:param] requires [:param] to be passed in arguments

okonet avatar May 28 '13 11:05 okonet