Morning all, I was hoping to get some pointers to good/simple examples of error-handling in Lwt.
After yesterday's call I started looking at getting latest "tag" rather than "release" using ocaml-github - Github's API's concept of a release is distinct from git tagging, which explains some repos showing no releases. The approach is fine for repos that have tags but Github.Repo.get_tags_and_times raises an Lwt exception for repos without any tags. https://github.com/rudenoise/mirage-dashboard/blob/tags/src/get_releases.ml#L66 I'd like to get my head around how I could catch this exception and swallow it (as needed during the cycle through each repo) - returning a default value/message. Does anyone have a link to a very simple example or tutorial, I'm having trouble finding one? Thanks Joel
_______________________________________________ MirageOS-devel mailing list [email protected] http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
