environment: fix error message for LIBGUESTFS_DEBUG failure

Properly mention LIBGUESTFS_DEBUG as environment variable when it
cannot be parsed as boolean.
This commit is contained in:
Pino Toscano
2016-12-01 15:58:10 +01:00
parent c2f5330447
commit 8462b1ea32

View File

@@ -199,7 +199,7 @@ parse_environment (guestfs_h *g,
if (str) {
b = guestfs_int_is_true (str);
if (b == -1) {
error (g, _("%s=%s: non-boolean value"), "LIBGUESTFS_TRACE", str);
error (g, _("%s=%s: non-boolean value"), "LIBGUESTFS_DEBUG", str);
return -1;
}
guestfs_set_verbose (g, b);