made log error message more correct