diff options
author | Pixel <Pixel> | 2001-12-02 18:55:35 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-12-02 18:55:35 +0000 |
commit | e4075153def021c3405accb19ffcdc3247d98807 (patch) | |
tree | dc7085d969af2dd121f22619d6c453c4bd7a41a9 /lib/Exceptions.cc | |
parent | 37989e882eaa805662dd0e260eb293c939e082b7 (diff) |
Comments and so...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index 6d24646..53d974d 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -12,17 +12,17 @@ char GeneralException::t[BUFSIZ]; GeneralException::GeneralException(String emsg) : msg(emsg.strdup()) { #ifdef DEBUG - cerr << "Generating a General Exception error: '" << msg << "'.\n"; + cerr << _("Generating a General Exception error: '") << msg << "'.\n"; #endif } GeneralException::GeneralException() : msg(0) { #ifdef DEBUG - cerr << "Generating a General Exception error: '" << msg << "'.\n"; + cerr << _("Generating a General Exception error: '") << msg << "'.\n"; #endif } GeneralException::GeneralException(const GeneralException & e) : msg(strdup(e.msg)) { #ifdef DEBUG - cerr << "Generating a General Exception error: '" << msg << "'.\n"; + cerr << _("Generating a General Exception error: '") << msg << "'.\n"; #endif } @@ -120,7 +120,7 @@ void xfree(void *& p) { int xpipe(int * p, int flag) throw (GeneralException) { if (pipe(p)) { - throw GeneralException(String("Error creating pipe: ") + strerror(errno)); + throw GeneralException(String(_("Error creating pipe: ")) + strerror(errno)); } return p[flag]; @@ -132,7 +132,7 @@ pid_t xfork() throw (GeneralException) { p = fork(); if (p == -1) { - throw GeneralException("Was not able to fork().\n"); + throw GeneralException(_("Was not able to fork().\n")); } return p; |