Fix for broken error logging
Merge pull request #34 from Anuj-Agrawal/master

Fix for broken error logging