Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 23eea982..05135d76 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -1593,10 +1593,12 @@ int pm_vasprintf(char **string, alpm_loglevel_t level, const char *format, va_li
/* print a prefix to the message */
switch(level) {
case ALPM_LOG_ERROR:
- pm_asprintf(string, _("error: %s"), msg);
+ pm_asprintf(string, "%s%s%s%s", config->colstr.err, _("error: "),
+ config->colstr.nocolor, msg);
break;
case ALPM_LOG_WARNING:
- pm_asprintf(string, _("warning: %s"), msg);
+ pm_asprintf(string, "%s%s%s%s", config->colstr.warn, _("warning: "),
+ config->colstr.nocolor, msg);
break;
case ALPM_LOG_DEBUG:
pm_asprintf(string, "debug: %s", msg);