showing proper errors in logs