[pve-devel] [PATCH pve-container 1/2] error when failing to extract rather than warn

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 20 13:35:25 CET 2015


please ignore this obvious nonsense... v2 incoming...

> On November 20, 2015 at 11:54 AM Wolfgang Bumiller <w.bumiller at proxmox.com>
> wrote:
> 
> 
> ---
>  src/PVE/LXC/Create.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
> index 58db2d2..7051fcc 100644
> --- a/src/PVE/LXC/Create.pm
> +++ b/src/PVE/LXC/Create.pm
> @@ -213,7 +213,7 @@ sub create_rootfs {
>          restore_and_configure($vmid, $archive, $rootdir, $conf, $password,
> $restore);
>      };
>      if (my $err = $@) {
> -	warn $err;
> +	die $err;
>  	PVE::LXC::umount_all($vmid, $storage_cfg, $conf, 1);
>      } else {
>  	PVE::LXC::umount_all($vmid, $storage_cfg, $conf, 0);
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>




More information about the pve-devel mailing list