better error message on mismatched schema