fixed error_log check (closes #2)