From f5d7af46a44872fb9c841e13f1b3e8aac48185aa Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 14 Jun 2020 18:23:28 +0530 Subject: Change warning color to yellow from red --- ara.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ara.pl b/ara.pl index 96a8ab1..61f066e 100755 --- a/ara.pl +++ b/ara.pl @@ -45,7 +45,7 @@ GetOptions( if ( $use_local_file and $get_latest ) { - warn LOCALCOLOR RED "Cannot use --local & --latest together + warn LOCALCOLOR YELLOW "Cannot use --local & --latest together Overriding --latest option"; undef $get_latest; } @@ -71,8 +71,8 @@ undef $hide{'last updated'} if exists $hide{updated}; # Warn when user tries to hide these columns. -warn LOCALCOLOR RED "Cannot hide state column" if exists $hide{state}; -warn LOCALCOLOR RED "Cannot hide notes column" +warn LOCALCOLOR YELLOW "Cannot hide state column" if exists $hide{state}; +warn LOCALCOLOR YELLOW "Cannot hide notes column" if exists $hide{notes} and $state_notes; sub HelpMessage { @@ -120,7 +120,8 @@ if ( -e $file ) { $file_mtime = Time::Moment->from_epoch( $file_stat->mtime ); } else { if ( $use_local_file ) { - warn "File '$file' doesn't exist\nFetching latest...\n"; + warn LOCALCOLOR YELLOW "File '$file' doesn't exist +Fetching latest..."; undef $use_local_file; } } -- cgit 1.4.1-2-gfad0