]> git.proxmox.com Git - pve-storage.git/commitdiff
Status: Include command error in error message when storage activation fails
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 10 Apr 2019 15:17:14 +0000 (17:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Apr 2019 06:04:32 +0000 (08:04 +0200)
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
PVE/API2/Storage/Status.pm

index 1b0486a56cc1ca326dfc18ad172e9d6993c00bb0..9a5a95239e6fe495501eaed874eee94367d49cb3 100644 (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");