This is great! I didn't realize ruby-libvirt exposed the error code.