From c50590ef724d4a91c2e35e99a3459769ca3b5c7f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 4 Jul 2019 15:30:54 +0200 Subject: [PATCH] 5to6: improve final note on errors and/or warning a bit Signed-off-by: Thomas Lamprecht --- PVE/CLI/pve5to6.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PVE/CLI/pve5to6.pm b/PVE/CLI/pve5to6.pm index 1dfecb42..32a9c264 100644 --- a/PVE/CLI/pve5to6.pm +++ b/PVE/CLI/pve5to6.pm @@ -639,8 +639,11 @@ __PACKAGE__->register_method ({ print colored("WARNINGS: $counters->{warn}\n", 'yellow'); print colored("FAILURES: $counters->{fail}\n", 'red'); - print colored("\nATTENTION: Please check the output for detailed information!\n", 'red') - if ($counters->{warn} > 0 || $counters->{fail} > 0); + if ($counters->{warn} > 0 || $counters->{fail} > 0) { + my $color = $counters->{fail} > 0 ? 'red' : 'yellow'; + print colored("\nATTENTION: Please check the output for detailed information!\n", $color); + print colored("Try to solve the problems one at a time and then run this checklist tool again.\n", $color); + } return undef; }});