> I think we should implement error handling, but I don't think we should use libuv error codes directly, because we should be able to handle errors in a consistent way, even if they are not from libuv.

That should be preferable of course (if it's not too complex).