Fix a minor bug in error reporting

Hello @nicks, 

Please review the following commits I made in branch 'nick-errors'.

33700f977a5b5248dead272431daf7979ef4e046 (2013-09-20 10:00:10 -0400)
Fix a minor bug in error reporting

Check list:


R=@nicks