Fix error reporting in a corner case.  Looks like a case of incomplete
copy-and-paste...
Merge pull request #525 from swails/master

Fix error reporting in a corner case.  Looks like a case of incomplete copy-and-paste...