giza: produce better errors for failed inheritance