Commit 78847c2ea54db89ad5bca72efef5962f5f61d7ad

Thomas de Grivel 2023-02-24T11:18:45

put errors in red

diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 332daaa..9499b8c 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -342,7 +342,7 @@ end
 def verbose(level, msg)
   colored = case level
             when -1
-              "\33[0;35m#{msg}\33[0m\n"
+              "\33[0;31m#{msg}\33[0m\n"
             when 0
               msg
             when 1
diff --git a/lib/rbpkg/log.rb b/lib/rbpkg/log.rb
index 81c7895..727c887 100644
--- a/lib/rbpkg/log.rb
+++ b/lib/rbpkg/log.rb
@@ -13,6 +13,7 @@ module Rbpkg
         "&" => "&",
         "<" => "&lt;",
         ">" => "&gt;",
+        "\33[0;31m" => "<span style=\"color: red;\">",
         "\33[0;34m" => "<span style=\"color: blue;\">",
         "\33[0;35m" => "<span style=\"color: purple;\">",
         "\33[0m" => "</span>"