FitzChivalry2 (23) [Avatar] Offline
#1
You missed bolding the change of the otherwise text, and I missed the paragraph below it that talks about it. Took me a while to pore over my code to figure out where I went wrong.

That's one thing about a Javascript-based development language vice, say, a Java-based one... you don't have helpful compiler error messages telling you why things aren't working! :-/
jeremy.wilken (208) [Avatar] Offline
#2
Thanks, you are correct! I've updated it in my latest draft.

I could go into why a compiler is not always a friend...but I won't go there. The way you'd really want to test this in JavaScript is with an integration test that checks if the app handles an invalid route as expected. The tools to do that are covered in chapter 9 though, which isn't in the MEAP yet, so keep an eye open!

Jeremy