added log to error message