keysinterface: replace Result match with map_err