aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-01-19 13:45:06 +0100
committerPierre Ossman <ossman@cendio.se>2021-01-19 13:45:06 +0100
commit59d5bc4095383f73635398c21611d95274a4d914 (patch)
treee4c325f0013ed27cc38b9e7d5538550457a7db77 /vncviewer/Viewport.cxx
parentedaf70bd36667c85d70fb362213ec93c58bb8577 (diff)
parent8ddebf6dd2dca7be98230e2b8d567c70833bd5a7 (diff)
downloadtigervnc-59d5bc4095383f73635398c21611d95274a4d914.tar.gz
tigervnc-59d5bc4095383f73635398c21611d95274a4d914.zip
Merge branch 'noblock' of https://github.com/CendioOssman/tigervnc
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx24
1 files changed, 16 insertions, 8 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index b5466acb..a6520a16 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -574,7 +574,8 @@ int Viewport::handle(int event)
cc->sendClipboardData(filtered);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
strFree(filtered);
@@ -670,7 +671,8 @@ void Viewport::sendPointerEvent(const rfb::Point& pos, int buttonMask)
cc->writer()->writePointerEvent(pos, buttonMask);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
} else {
if (!Fl::has_timeout(handlePointerTimeout, this))
@@ -769,7 +771,8 @@ void Viewport::handleClipboardChange(int source, void *data)
self->cc->announceClipboard(true);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
}
@@ -781,7 +784,8 @@ void Viewport::flushPendingClipboard()
cc->requestClipboard();
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
}
if (pendingClientClipboard) {
@@ -789,7 +793,8 @@ void Viewport::flushPendingClipboard()
cc->announceClipboard(true);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
}
@@ -815,7 +820,8 @@ void Viewport::handlePointerTimeout(void *data)
self->lastButtonMask);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
}
@@ -884,7 +890,8 @@ void Viewport::handleKeyPress(int keyCode, rdr::U32 keySym)
cc->writer()->writeKeyEvent(keySym, keyCode, true);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
}
@@ -918,7 +925,8 @@ void Viewport::handleKeyRelease(int keyCode)
cc->writer()->writeKeyEvent(iter->second, keyCode, false);
} catch (rdr::Exception& e) {
vlog.error("%s", e.str());
- exit_vncviewer(e.str());
+ exit_vncviewer(_("An unexpected error occurred when communicating "
+ "with the server:\n\n%s"), e.str());
}
downKeySym.erase(iter);