helpers.cpp: add add script name to debug output

This commit is contained in:
2020-07-07 18:14:23 +02:00
parent ff40921ed8
commit 75d77244f8

View File

@@ -429,7 +429,7 @@ bool exec_controlscript(std::string script)
dprintf(DEBUG_NORMAL, "executing %s\n", controlscript.c_str()); dprintf(DEBUG_NORMAL, "executing %s\n", controlscript.c_str());
int ret = my_system(controlscript.c_str()); int ret = my_system(controlscript.c_str());
if (ret) if (ret)
dprintf(DEBUG_NORMAL, "control script failed\n"); dprintf(DEBUG_NORMAL, "exec control script [%s] failed\n", controlscript.c_str());
return ret; return ret;
} }