Fix typo in exception handler preventing proper error printing.

Commit message pretty much says it all.