cc->sendClipboardData(filtered);
} 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);
}
strFree(filtered);
cc->writer()->writePointerEvent(pos, buttonMask);
} 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);
}
} else {
if (!Fl::has_timeout(handlePointerTimeout, this))
self->cc->announceClipboard(true);
} 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);
}
}
cc->requestClipboard();
} 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);
}
}
if (pendingClientClipboard) {
cc->announceClipboard(true);
} 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);
}
}
self->lastButtonMask);
} 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);
}
}
cc->writer()->writeKeyEvent(keySym, keyCode, true);
} 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);
}
}
cc->writer()->writeKeyEvent(iter->second, keyCode, false);
} 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);
}
downKeySym.erase(iter);