fix for issue #38

I think this is what you were looking for. An error message now gets logged to terminal.