[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] Handling Lwt exceptions

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.


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?


MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.