alexzorin/libvirt-go — pull request #32 by cbosdo (2014-09-12 16:10:49+00:00)
Title: Mapping for errors

**Note**: this commit changes libvirt.GetLastError() return value. I'm not sure if it's OK to break API compatibility. Otherwise, we could try to find another name for it.

Changed GetLastError to return VirError instead of a simple string.
VirError helps getting easy access to the error code, level and domain.
VirError implements the error interface for easy use.