throw an error if we cant find the object asked for