Fixing bug to enable helpful error reporting.
Merge pull request #358 from cschroed-usgs/master

Fixing bug to enable helpful error reporting.