From 3eab7260a5e36ce6da0dff39456eb9100a13222b Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 22 Jun 2009 14:24:52 +0100 Subject: [PATCH] Improve error message when appliance doesn't match library. --- daemon/stubs.c | 2 +- src/generator.ml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/stubs.c b/daemon/stubs.c index 2a6035c..af87a99 100644 --- a/daemon/stubs.c +++ b/daemon/stubs.c @@ -3197,7 +3197,7 @@ void dispatch_incoming_message (XDR *xdr_in) glob_expand_stub (xdr_in); break; default: - reply_with_error ("dispatch_incoming_message: unknown procedure number %d", proc_nr); + reply_with_error ("dispatch_incoming_message: unknown procedure number %d, set LIBGUESTFS_PATH to point to the matching libguestfs appliance directory", proc_nr); } } diff --git a/src/generator.ml b/src/generator.ml index d639199..f4b5605 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -3686,7 +3686,7 @@ and generate_daemon_actions () = ) daemon_functions; pr " default:\n"; - pr " reply_with_error (\"dispatch_incoming_message: unknown procedure number %%d\", proc_nr);\n"; + pr " reply_with_error (\"dispatch_incoming_message: unknown procedure number %%d, set LIBGUESTFS_PATH to point to the matching libguestfs appliance directory\", proc_nr);\n"; pr " }\n"; pr "}\n"; pr "\n"; -- 1.8.3.1