added location to error message to find the error while rendering