[beast: 5/9] SFI: use program_alias() for error messages
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/9] SFI: use program_alias() for error messages
- Date: Thu, 8 Jun 2017 20:23:06 +0000 (UTC)
commit e24a04c633f94d1ab3e0e8acc6da832f46403eb8
Author: Tim Janik <timj gnu org>
Date: Fri May 26 00:09:25 2017 +0200
SFI: use program_alias() for error messages
Signed-off-by: Tim Janik <timj gnu org>
sfi/bcore.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sfi/bcore.cc b/sfi/bcore.cc
index e717606..9f58f3e 100644
--- a/sfi/bcore.cc
+++ b/sfi/bcore.cc
@@ -60,10 +60,10 @@ diagnostic (char kind, const std::string &message)
case 'D': prefix = "DEBUG: "; break;
case ' ': prefix = ""; break;
case 'F':
- prefix = program_argv0() + ": FATAL: ";
+ prefix = program_alias() + ": FATAL: ";
break;
default:
- prefix = program_argv0() + ": " + buf + ": ";
+ prefix = program_alias() + ": " + buf + ": ";
break;
}
const char *const newline = !message.empty() && message.data()[message.size() - 1] == '\n' ? "" : "\n";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]