[education/rkward] rkward/rbackend: Try to get better diagnostics for unexpected backend exits.
Thomas Friedrichsmeier
null at kde.org
Fri Mar 4 22:18:49 GMT 2022
Git commit aa1634049bca95ca419d54b6a87b1b4d75b3a55d by Thomas Friedrichsmeier.
Committed on 04/03/2022 at 22:18.
Pushed by tfry into branch 'master'.
Try to get better diagnostics for unexpected backend exits.
M +2 -2 rkward/rbackend/rkfrontendtransmitter.cpp
https://invent.kde.org/education/rkward/commit/aa1634049bca95ca419d54b6a87b1b4d75b3a55d
diff --git a/rkward/rbackend/rkfrontendtransmitter.cpp b/rkward/rbackend/rkfrontendtransmitter.cpp
index 3a09db84..eb14a90d 100644
--- a/rkward/rbackend/rkfrontendtransmitter.cpp
+++ b/rkward/rbackend/rkfrontendtransmitter.cpp
@@ -213,8 +213,8 @@ void RKFrontendTransmitter::backendExit (int exitcode) {
RK_TRACE (RBACKEND);
if (!exitcode && token.isEmpty ()) handleTransmissionError (i18n ("The backend process could not be started. Please check your installation."));
- else if (token.isEmpty ()) handleTransmissionError (i18n ("The backend process failed to start with exit code %1.", exitcode));
- else handleTransmissionError (i18n ("Backend process has exited with code %1.", exitcode));
+ else if (token.isEmpty ()) handleTransmissionError (i18n ("The backend process failed to start with exit code %1, message: '%2'.", exitcode, QString::fromLocal8Bit(backend->readAllStandardError())));
+ else handleTransmissionError (i18n ("Backend process has exited with code %1, message: '%2'.", exitcode, QString::fromLocal8Bit(backend->readAllStandardError())));
}
void RKFrontendTransmitter::writeRequest (RBackendRequest *request) {
More information about the rkward-tracker
mailing list