Added locations and precise descriptions when object syntax is not as expected