From 6d788031b070efe0ff90b2e7e7a5b2fbf1a819a7 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 29 Apr 2015 06:59:48 +0200 Subject: [PATCH] add newlines to error messages --- PVE/Storage/Plugin.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index c6db741..5b72b07 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -627,7 +627,7 @@ sub volume_size_info { sub volume_resize { my ($class, $scfg, $storeid, $volname, $size, $running) = @_; - die "can't resize this image format" if $volname !~ m/\.(raw|qcow2)$/; + die "can't resize this image format\n" if $volname !~ m/\.(raw|qcow2)$/; return 1 if $running; @@ -643,7 +643,7 @@ sub volume_resize { sub volume_snapshot { my ($class, $scfg, $storeid, $volname, $snap, $running) = @_; - die "can't snapshot this image format" if $volname !~ m/\.(qcow2|qed)$/; + die "can't snapshot this image format\n" if $volname !~ m/\.(qcow2|qed)$/; return 1 if $running; @@ -665,7 +665,7 @@ sub volume_rollback_is_possible { sub volume_snapshot_rollback { my ($class, $scfg, $storeid, $volname, $snap) = @_; - die "can't rollback snapshot this image format" if $volname !~ m/\.(qcow2|qed)$/; + die "can't rollback snapshot this image format\n" if $volname !~ m/\.(qcow2|qed)$/; my $path = $class->filesystem_path($scfg, $volname); @@ -679,7 +679,7 @@ sub volume_snapshot_rollback { sub volume_snapshot_delete { my ($class, $scfg, $storeid, $volname, $snap, $running) = @_; - die "can't delete snapshot for this image format" if $volname !~ m/\.(qcow2|qed)$/; + die "can't delete snapshot for this image format\n" if $volname !~ m/\.(qcow2|qed)$/; return 1 if $running; -- 2.39.2