passing correct error message
removed logging - [not done]
Merge pull request #46 from mapbox/profiler

passing correct error message