Skip to content

Commit

Permalink
Extended debug message for recieved messages and filtered out empty a…
Browse files Browse the repository at this point in the history
…ssignment errors.
  • Loading branch information
RobertKrajewski committed Mar 18, 2015
1 parent d3fbb43 commit 3758f8d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ void Parser::parseCourses(QNetworkReply *reply, QStandardItemModel *itemModel)

if(!object["Status"].toBool())
{
QLOG_ERROR() << tr("Status der Kursinformationen nicht ok.");
QLOG_ERROR() << tr("Status der Kursinformationen nicht ok: ") <<
QString(document.toJson());
return;
}

Expand Down Expand Up @@ -104,7 +105,14 @@ void Parser::parseFiles(QNetworkReply *reply, QMap<QNetworkReply*, Structureelem

if(!object["Status"].toBool())
{
QLOG_ERROR() << tr("Status der Kursinformationen nicht ok.");
if( url.contains( "viewAllAssignments") )
{
return;
}

QLOG_ERROR() << tr("Status der Kursinformationen nicht ok: \n") <<
url << "\n" <<
QString(document.toJson());
return;
}

Expand Down

0 comments on commit 3758f8d

Please sign in to comment.