Rename OnError to OnModelError