about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-06-14 18:23:28 +0530
committerAndinus <andinus@nand.sh>2020-06-14 18:23:28 +0530
commitf5d7af46a44872fb9c841e13f1b3e8aac48185aa (patch)
treed8587ad43818fa6aa566c729e653063b06f3dbe3
parentdc87ff67f47010cb2b25e6cff93c02bb0b8859ff (diff)
downloadara-f5d7af46a44872fb9c841e13f1b3e8aac48185aa.tar.gz
Change warning color to yellow from red
-rwxr-xr-xara.pl9
1 files 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;
     }
 }
/a> 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164