From 4af77132683a2e1fa462f3740837b15a72a37ffe Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Wed, 10 Apr 2019 17:17:14 +0200 Subject: [PATCH] Status: Include command error in error message when storage activation fails Signed-off-by: Christian Ebner --- 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");