summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-07-14 11:48:55 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-07-14 11:48:55 +0100
commit9af96c41f64567e6fbe0dd25f6ffa90385e9c49a (patch)
treebcdc26a15d3f145973a0e548d0072f7a25e050ee /src
parent7c97febc5ffaeffda7231c88b2966fd85c0bb335 (diff)
downloadlibguestfs-9af96c41f64567e6fbe0dd25f6ffa90385e9c49a.tar.gz
libguestfs-9af96c41f64567e6fbe0dd25f6ffa90385e9c49a.tar.xz
libguestfs-9af96c41f64567e6fbe0dd25f6ffa90385e9c49a.zip
Improve launch error message.
The previous error message was confusing for new users: libguestfs: error: guestfs_mount: call launch() before using this function The new error message explains the action that the user must take, especially if they are using guestfish: ><fs> mount /dev/sda1 / libguestfs: error: guestfs_mount: call launch before using this function (in guestfish, don't forget to use the 'run' command)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml
index e3293d1d..d3040d5f 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -3737,7 +3737,7 @@ check_state (guestfs_h *g, const char *caller)
{
if (!guestfs_is_ready (g)) {
if (guestfs_is_config (g))
- error (g, \"%%s: call launch() before using this function\",
+ error (g, \"%%s: call launch before using this function\\n(in guestfish, don't forget to use the 'run' command)\",
caller);
else if (guestfs_is_launching (g))
error (g, \"%%s: call wait_ready() before using this function\",