Fix error log output.