Improve error message when appliance doesn't match library.
authorRichard Jones <rjones@trick.home.annexia.org>
Mon, 22 Jun 2009 13:24:52 +0000 (14:24 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Mon, 22 Jun 2009 13:24:52 +0000 (14:24 +0100)
daemon/stubs.c
src/generator.ml

index 2a6035c..af87a99 100644 (file)
@@ -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);
   }
 }
 
index d639199..f4b5605 100755 (executable)
@@ -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";