Output the error if not production so that tests can be debugged
Merge pull request #1 from Financial-Times/better-for-tests

Output the error if not production so that tests can be debugged