[pve-devel] [PATCH container] pct: improve error message output of die

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Mar 22 10:11:13 CET 2017


---
 src/PVE/CLI/pct.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index 53d110c..4b92280 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -605,7 +605,7 @@ __PACKAGE__->register_method({
 
 	my $code = sub {
 	    my $running = PVE::LXC::check_running($vmid);
-	    die "can only push files to a running VM" if !$running;
+	    die "can only push files to a running CT\n" if !$running;
 
 	    my $conf = PVE::LXC::Config->load_config($vmid);
 	    my $unprivileged = $conf->{unprivileged};
-- 
2.1.4





More information about the pve-devel mailing list