Added log message when error raised.