added log output on error