[errors] Fix error location for Object() argument