diff options
| author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-06-30 14:42:48 +0200 |
|---|---|---|
| committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-06-30 14:42:48 +0200 |
| commit | e04fc8effd469803811435111bb22fb5a6db44b8 (patch) | |
| tree | 2e4e3e24af02c68e608ecc9ea80c28feb494b449 /src/CLI/report.cpp | |
| parent | b85c61e854bfd80876825970d1d25399590795cd (diff) | |
| parent | be7875678a508b7524465b3a62bef87d57e2a80e (diff) | |
| download | abrt-e04fc8effd469803811435111bb22fb5a6db44b8.tar.gz abrt-e04fc8effd469803811435111bb22fb5a6db44b8.tar.xz abrt-e04fc8effd469803811435111bb22fb5a6db44b8.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/CLI/report.cpp')
| -rw-r--r-- | src/CLI/report.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/CLI/report.cpp b/src/CLI/report.cpp index ebaeafa1..8316418c 100644 --- a/src/CLI/report.cpp +++ b/src/CLI/report.cpp @@ -162,13 +162,13 @@ static void write_crash_report_field(FILE *fp, const map_crash_data_t &report, if (it == report.end()) { // exit silently, all fields are optional for now - //error_msg("Field %s not found.\n", field); + //error_msg("Field %s not found", field); return; } if (it->second[CD_TYPE] == CD_SYS) { - error_msg("Cannot write field %s because it is a system value\n", field); + error_msg("Cannot update field %s because it is a system value", field); return; } @@ -241,13 +241,13 @@ static int read_crash_report_field(const char *text, map_crash_data_t &report, const map_crash_data_t::iterator it = report.find(field); if (it == report.end()) { - error_msg("Field %s not found.\n", field); + error_msg("Field %s not found", field); return 0; } if (it->second[CD_TYPE] == CD_SYS) { - error_msg("Cannot update field %s because it is a system value.\n", field); + error_msg("Cannot update field %s because it is a system value", field); return 0; } @@ -331,9 +331,9 @@ static int launch_editor(const char *path) editor = getenv("EDITOR"); terminal = getenv("TERM"); - if (!editor && (!terminal || !strcmp(terminal, "dumb"))) + if (!editor && (!terminal || strcmp(terminal, "dumb") == 0)) { - error_msg(_("Terminal is dumb but no VISUAL nor EDITOR defined.")); + error_msg(_("Can't run vi: $TERM, $VISUAL and $EDITOR are not set")); return 1; } @@ -567,7 +567,7 @@ static bool set_echo(bool enabled) t.c_lflag &= ~ECHO; if (tcsetattr(STDIN_FILENO, TCSANOW, &t) < 0) - perror_msg_and_die("tcsetattr failed"); + perror_msg_and_die("tcsetattr"); return true; } |
