[pve-devel] [PATCH storage] Status: Include command error in error message when storage activation fails
Christian Ebner
c.ebner at proxmox.com
Wed Apr 10 17:17:14 CEST 2019
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
PVE/API2/Storage/Status.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm
index 1b0486a..9a5a952 100644
--- a/PVE/API2/Storage/Status.pm
+++ b/PVE/API2/Storage/Status.pm
@@ -442,7 +442,7 @@ __PACKAGE__->register_method ({
PVE::Tools::run_command([@remcmd, '/usr/sbin/pvesm', 'status',
'--storage', $param->{storage}]);
};
- die "can't activate storage '$param->{storage}' on node '$node'\n" if $@;
+ die "can't activate storage '$param->{storage}' on node '$node': $@\n" if $@;
PVE::Tools::run_command([@remcmd, '/bin/mkdir', '-p', '--', PVE::Tools::shell_quote($dirname)],
errmsg => "mkdir failed");
--
2.11.0
More information about the pve-devel
mailing list