mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
vsh: Fix the incorrect environment variable prefix in error message
Unlike the other error messages in vshInitDebug, this one relied on a hardcoded name of a variable instead of using the prefix of the tool calling the init routine. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1393854 Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
3c6481cc6e
commit
7b8e1dff1a
@ -3016,8 +3016,8 @@ vshInitDebug(vshControl *ctl)
|
|||||||
int debug;
|
int debug;
|
||||||
if (virStrToLong_i(debugEnv, NULL, 10, &debug) < 0 ||
|
if (virStrToLong_i(debugEnv, NULL, 10, &debug) < 0 ||
|
||||||
debug < VSH_ERR_DEBUG || debug > VSH_ERR_ERROR) {
|
debug < VSH_ERR_DEBUG || debug > VSH_ERR_ERROR) {
|
||||||
vshError(ctl, "%s",
|
vshError(ctl, _("%s_DEBUG not set with a valid numeric value"),
|
||||||
_("VSH_DEBUG not set with a valid numeric value"));
|
ctl->env_prefix);
|
||||||
} else {
|
} else {
|
||||||
ctl->debug = debug;
|
ctl->debug = debug;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user