[Pkg-libvirt-commits] [libvirt-sandbox] 11/42: Improve error message for unsupported URIs

Guido Guenther agx at moszumanska.debian.org
Sat May 27 16:27:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch debian/experimental
in repository libvirt-sandbox.

commit 2fc51a5777150cf7c4b309a199966947d2a265f4
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri Jul 8 16:58:45 2016 +0100

    Improve error message for unsupported URIs
    
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 libvirt-sandbox/libvirt-sandbox-context-interactive.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libvirt-sandbox/libvirt-sandbox-context-interactive.c b/libvirt-sandbox/libvirt-sandbox-context-interactive.c
index 3ab63ec..5ecaf09 100644
--- a/libvirt-sandbox/libvirt-sandbox-context-interactive.c
+++ b/libvirt-sandbox/libvirt-sandbox-context-interactive.c
@@ -229,13 +229,15 @@ static gboolean gvir_sandbox_context_interactive_start(GVirSandboxContext *ctxt,
         if (!g_str_equal(uri, "lxc:///") &&
             !g_str_equal(uri, "qemu:///system")) {
             g_set_error(error, GVIR_SANDBOX_CONTEXT_INTERACTIVE_ERROR, 0,
-                        _("Only 'lxc:///' or 'qemu:///system' URIs supported when running as root"));
+                        _("URI '%s' unsupported as root, try 'lxc:///' or 'qemu:///system'"),
+                        uri);
             goto cleanup;
         }
     } else {
         if (!g_str_equal(uri, "qemu:///session")) {
             g_set_error(error, GVIR_SANDBOX_CONTEXT_INTERACTIVE_ERROR, 0,
-                        _("Only 'qemu:///session' URIs supported when running as non-root"));
+                        _("URI '%s' unsupported as non-root, try 'qemu:///session'"),
+                        uri);
             goto cleanup;
         }
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt-sandbox.git



More information about the Pkg-libvirt-commits mailing list