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 ...@@ -254,11 +254,13 @@ QString CodaCommandResult::errorString() const
commandError.write(str); commandError.write(str);
break; break;
} }
// Append the failed command for reference if (debug) {
str << " (Command was: '"; // Append the failed command for reference
QByteArray printableRequest = request; str << " (Command was: '";
printableRequest.replace('\0', '|'); QByteArray printableRequest = request;
str << printableRequest << "')"; printableRequest.replace('\0', '|');
str << printableRequest << "')";
}
return rc; return rc;
} }
......
Supports Markdown
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