[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Error handling in Mirage
Hi,
On Thu, Jul 10, 2014 at 11:47 AM, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
This sounds sensible to me. When debugging one of these fatal errors (e.g. 'Disconnected' which means: someone called 'disconnect' and then tried 'read' or 'write' afterwards) it would be useful to have more context. For example it would probably be good to add the device id to the exception so we know which disk it relates to. This could help us infer that the buggy code is in the FS driver running on disk 2 and not the irmin backend on disk 1. There might be other useful context which is more implementation-specific. We could either just log this to the console or we could encode it up as an Sexp.t and attach that to the exception too?
Since our top-level function is in the auto generated code: let () = Â OS.Main.run (join [t1 ()]) For every exception we declare in our interface, should we pre-create a default exception handler which pretty-prints it? This could also explain to the unlucky user that this is a bug and should be reported on the issue tracker?
BTW I've now forked the V1 interfaces into a V2, so feel free to propose concrete changes as pull requests! Cheers, Dave
Dave Scott _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |