else
NUri.name_of_uri u ^"("^ string_of_int i ^ ")"
| _ -> assert false)
- with NCicLibrary.ObjectNotFound _ -> R.string_of_reference r
+ with
+ | NCicLibrary.ObjectNotFound _
+ | Failure "nth"
+ | Invalid_argument "List.nth" -> R.string_of_reference r
+
;;
let string_of_implicit_annotation = function