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

CODA: Simplifying error message

parent aa35085c
...@@ -137,10 +137,10 @@ QDateTime CodaCommandResult::tcfTimeToQDateTime(quint64 tcfTimeMS) ...@@ -137,10 +137,10 @@ QDateTime CodaCommandResult::tcfTimeToQDateTime(quint64 tcfTimeMS)
void CodaCommandError::write(QTextStream &str) const void CodaCommandError::write(QTextStream &str) const
{ {
if (isError()) { if (isError()) {
if (timeMS) if (debug && timeMS)
str << CodaCommandResult::tcfTimeToQDateTime(timeMS).toString(Qt::ISODate) << ": "; str << CodaCommandResult::tcfTimeToQDateTime(timeMS).toString(Qt::ISODate) << ": ";
str << "Error code: " << code str << "'" << format << '\'' //for symbian the format is the real error message
<< " '" << format << '\''; << " Code: " << code;
if (!alternativeOrganization.isEmpty()) if (!alternativeOrganization.isEmpty())
str << " ('" << alternativeOrganization << "', code: " << alternativeCode << ')'; str << " ('" << alternativeOrganization << "', code: " << alternativeCode << ')';
} else{ } else{
......
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