]> git.proxmox.com Git - pve-container.git/commitdiff
pct: improve error message output of die
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 22 Mar 2017 09:11:13 +0000 (10:11 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 4 Apr 2017 14:08:32 +0000 (16:08 +0200)
src/PVE/CLI/pct.pm

index 53d110c469b49d54db311925d54376a119ee2def..3253906042e63b6ae6808fb5bbf8a7b6752200d0 100755 (executable)
@@ -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};