inchilib: add return distinct from throw