Change misleading error message in QDBusReply
"no signature" is misleading and even led me to re-check the code to see if it meant that the reply failed and no signature could be obtained. Saying that the signature was obtained but is empty is better. Change-Id: I1381cf53b334798125d36db0934105d15b63b84f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
This commit is contained in:
parent
0f88c5c1b9
commit
5d8baf9056
@ -219,7 +219,7 @@ void qDBusReplyFill(const QDBusMessage &reply, QDBusError &error, QVariant &data
|
||||
|
||||
// error
|
||||
if (receivedSignature.isEmpty())
|
||||
receivedSignature = "no signature";
|
||||
receivedSignature = "<empty signature>";
|
||||
QString errorMsg;
|
||||
if (receivedType) {
|
||||
errorMsg = QString::fromLatin1("Unexpected reply signature: got \"%1\" (%4), "
|
||||
|
Loading…
Reference in New Issue
Block a user