diff options
author | William Sjöblom <wilsj@cendio.com> | 2021-11-22 17:36:35 +0100 |
---|---|---|
committer | William Sjöblom <wilsj@cendio.com> | 2021-11-23 09:56:58 +0100 |
commit | 15caddf67b1c482cb73a627c308810f2a515907a (patch) | |
tree | c2e79dcff69e01c47aac054c56cf9b38f25d1b10 /vncviewer/CConn.cxx | |
parent | a6160b38953d7c7d3cab2d655ea2ecce808a8163 (diff) | |
download | tigervnc-15caddf67b1c482cb73a627c308810f2a515907a.tar.gz tigervnc-15caddf67b1c482cb73a627c308810f2a515907a.zip |
Deduplicate vncviewer error messages
vncviewer previously had a the same localized error message duplicated
on a bunch of places. Pull these duplicates out into a single function.
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r-- | vncviewer/CConn.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index ebdfbe87..b1f97b98 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -277,8 +277,7 @@ void CConn::socketEvent(FL_SOCKET fd, void *data) } } catch (rdr::Exception& e) { vlog.error("%s", e.str()); - abort_connection(_("An unexpected error occurred when communicating " - "with the server:\n\n%s"), e.str()); + abort_connection_with_unexpected_error(e); } when = FL_READ | FL_EXCEPT; |