Register a custom exception printer
authorPino Toscano <ptoscano@redhat.com>
Thu, 30 Aug 2018 10:13:42 +0000 (12:13 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Aug 2018 10:26:32 +0000 (11:26 +0100)
commit8944bf149e66096d78f8b229da79362ba3eec3ef
tree6c2ab96d9d5f504dceaf9336b721d08e9251883a
parentc27cacae2abac36e2ae89e3e354ec7b0ba8a70dc
Register a custom exception printer

This way all the users of ocaml-libvirt can use Printexc.to_string to
print a Virterror exception, even in case they do not catch it
explicitly.
libvirt/libvirt.ml