diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 67b175660..ff7e5bca8 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -969,7 +969,7 @@ void CLI2::categorizeArgs () cmd->accepts_miscellaneous ()) { // Error: internally inconsistent. - throw std::string (STRING_UNKNOWN_ERROR); + throw std::string ("Unknown error. Please report."); } else if (cmd && cmd->accepts_filter () && @@ -1009,7 +1009,7 @@ void CLI2::categorizeArgs () cmd->accepts_miscellaneous ()) { // Error: internally inconsistent. - throw std::string (STRING_UNKNOWN_ERROR); + throw std::string ("Unknown error. Please report."); } } diff --git a/src/Context.cpp b/src/Context.cpp index eb4a2f824..24a70389d 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -595,7 +595,7 @@ int Context::initialize (int argc, const char** argv) catch (...) { - error (STRING_UNKNOWN_ERROR); + error ("Unknown error. Please report."); rc = 3; } @@ -708,7 +708,7 @@ int Context::run () catch (...) { - error (STRING_UNKNOWN_ERROR); + error ("Unknown error. Please report."); rc = 3; } diff --git a/src/l10n/deu-DEU.h b/src/l10n/deu-DEU.h index d8541bba7..d8167caaf 100644 --- a/src/l10n/deu-DEU.h +++ b/src/l10n/deu-DEU.h @@ -702,7 +702,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Fehler: " -#define STRING_UNKNOWN_ERROR "Unbekannter Fehler." #define STRING_TRIVIAL_INPUT "Sie müssen einen Befehl oder eine Aufgabe zum ändern angeben." #define STRING_ASSUME_INFO "Kein Befehl angegeben - nehme 'information' an." #define STRING_INFINITE_LOOP "Beende Ersetzung, weil mehr als {1} Änderungen durchgeführt wurden - Schutz vor Endlosschleifen." diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index 1a76a170f..69b9ad6c8 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -700,7 +700,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Error: " -#define STRING_UNKNOWN_ERROR "Unknown error. Please report." #define STRING_TRIVIAL_INPUT "You must specify a command or a task to modify." #define STRING_ASSUME_INFO "No command specified - assuming 'information'." #define STRING_INFINITE_LOOP "Terminated substitution because more than {1} changes were made - infinite loop protection." diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index 12d07c90c..1a03f3253 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -702,7 +702,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Eraro: " -#define STRING_UNKNOWN_ERROR "Eraro nekonata." #define STRING_TRIVIAL_INPUT "Oni devas specifi komandon, aŭ taskon ke vi volas modifi." #define STRING_ASSUME_INFO "Nenia komando specifita. Supozanta 'information'." #define STRING_INFINITE_LOOP "Finis anstataŭon ĉar ekzistas pli de {1} ŝanĝoj - protekto kontraŭ senfina ripeton." diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index fd4524167..bea071e29 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -714,7 +714,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Error: " // |esp-ESP|==|eng-USA| -#define STRING_UNKNOWN_ERROR "Error desconocido." #define STRING_TRIVIAL_INPUT "Debe especificar un comando o una tarea a modificar." #define STRING_ASSUME_INFO "No especificó un comando - asumido 'information'." #define STRING_INFINITE_LOOP "Sustitución terminada debido a que se hicieron más de {1} cambios - protección contra ciclo eterno." diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index 99eb79876..f09c1cdbd 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -704,7 +704,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Erreur : " -#define STRING_UNKNOWN_ERROR "Erreur inconnue." #define STRING_TRIVIAL_INPUT "Il vous faut spécifier une commande ou une tâche à modifier." #define STRING_ASSUME_INFO "No command specified - assuming 'information'." #define STRING_INFINITE_LOOP "Substitution arrêté parce que plus de {1} changements ont été faits - protection contre les boucles infinies." diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index db07c4c84..6545f6d2c 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -703,7 +703,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Errore: " -#define STRING_UNKNOWN_ERROR "Errore sconosciuto." #define STRING_TRIVIAL_INPUT "Specificare un comando o un task da modificare" #define STRING_ASSUME_INFO "Nessun comando specificato - si assume 'information'." #define STRING_INFINITE_LOOP "Sostituzione terminata poiché più di {1} modifiche sono state fatte - protezione da ciclo infinito" diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 6d96c7b6e..0a408ce40 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -704,7 +704,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "エラー: " -#define STRING_UNKNOWN_ERROR "不明なエラー。" #define STRING_TRIVIAL_INPUT "変更したいコマンドまたはタスクを指定しなければなりません。" #define STRING_ASSUME_INFO "コマンドが指定されていません - 'information' を仮定します。" #define STRING_INFINITE_LOOP "Terminated substitution because more than {1} changes were made - infinite loop protection." diff --git a/src/l10n/pol-POL.h b/src/l10n/pol-POL.h index 08264e014..c950f3089 100644 --- a/src/l10n/pol-POL.h +++ b/src/l10n/pol-POL.h @@ -704,7 +704,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Błąd: " -#define STRING_UNKNOWN_ERROR "Nieznany błąd." #define STRING_TRIVIAL_INPUT "Musisz podać polecenie lub zadanie do zmiany." #define STRING_ASSUME_INFO "Nie podano polecenia - zakładam 'information'." #define STRING_INFINITE_LOOP "Podstawienie anulowane ponieważ wykonano więcej niż {1} zmian - zabezpieczenie przed zapętleniem." diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index ad4564ce5..73b247501 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -704,7 +704,6 @@ // Errors // TODO Move each of these to appropriate section. #define STRING_ERROR_PREFIX "Erro: " -#define STRING_UNKNOWN_ERROR "Erro desconhecido." #define STRING_TRIVIAL_INPUT "Deve específicar um comando ou a tarefa a modificar." #define STRING_ASSUME_INFO "Nenhum comando especificado - assumindo 'information'." #define STRING_INFINITE_LOOP "Substituição terminada. Efectuadas mais de {1} alterações - protecção de ciclos infinitos." diff --git a/src/main.cpp b/src/main.cpp index c0f3a0a2c..0c5133185 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,7 +28,6 @@ #include #include #include -#include #include Context context; @@ -66,7 +65,7 @@ int main (int argc, const char** argv) catch (...) { - std::cerr << STRING_UNKNOWN_ERROR << "\n"; + std::cerr << "Unknown error. Please report.\n"; status = -2; } }