Commit 16105792 authored by Pawel Polanski's avatar Pawel Polanski
Browse files

CODA: Extend error codes only when debug is enabled

parent 67ae0e7f
......@@ -254,11 +254,13 @@ QString CodaCommandResult::errorString() const
commandError.write(str);
break;
}
// Append the failed command for reference
str << " (Command was: '";
QByteArray printableRequest = request;
printableRequest.replace('\0', '|');
str << printableRequest << "')";
if (debug) {
// Append the failed command for reference
str << " (Command was: '";
QByteArray printableRequest = request;
printableRequest.replace('\0', '|');
str << printableRequest << "')";
}
return rc;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment