Status: Include command error in error message when storage activation fails

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner
2019-04-10 17:17:14 +02:00
committed by Thomas Lamprecht
parent a2a04139da
commit 4af7713268

View File

@ -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");