jshint fix
Merge pull request #624 from guardian/new-imporoved-error-handling

jshint fix