Add error to log output

For easier debugging