From c76bd2b4823db606db11c8e4b405c978daafdf5f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 3 Dec 2014 14:01:31 +0100 Subject: [PATCH] Improve some error messages --- vncviewer/CConn.cxx | 8 ++++---- vncviewer/vncviewer.cxx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index a7328476..cf4f31b9 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -430,15 +430,15 @@ void CConn::dataRect(const Rect& r, int encoding) if (!Decoder::supported(encoding)) { // TRANSLATORS: Refers to a VNC protocol encoding type - vlog.error(_("Unknown rect encoding %d"), encoding); - throw Exception(_("Unknown rect encoding")); + vlog.error(_("Unknown encoding %d"), encoding); + throw Exception(_("Unknown encoding")); } if (!decoders[encoding]) { decoders[encoding] = Decoder::createDecoder(encoding, this); if (!decoders[encoding]) { - vlog.error(_("Unknown rect encoding %d"), encoding); - throw Exception(_("Unknown rect encoding")); + vlog.error(_("Unknown encoding %d"), encoding); + throw Exception(_("Unknown encoding")); } } decoders[encoding]->readRect(r, desktop->getFramebuffer()); diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index bf4bfb18..7fb712ab 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -113,7 +113,7 @@ static void CleanupSignalHandler(int sig) { // CleanupSignalHandler allows C++ object cleanup to happen because it calls // exit() rather than the default which is to abort. - vlog.info(_("CleanupSignalHandler called")); + vlog.info(_("Termination signal %d has been received. TigerVNC Viewer will now exit."), sig); exit(1); } -- 2.39.5