Merge pull request #1292 from Commifreak/plugin-display-retval

Display Run command retval in error message
This commit is contained in:
tom mortensen
2023-03-27 13:29:25 -07:00
committed by GitHub

View File

@@ -477,7 +477,7 @@ function plugin($method, $plugin_file, &$error) {
unlink($name);
}
if ($retval != 0) {
$error = "run failed: $command";
$error = "run failed: '$command' returned $retval";
return false;
}
}