Skip to content

Commit

Permalink
Only show mooc error code when actually an error
Browse files Browse the repository at this point in the history
Fixes #176
  • Loading branch information
cyderize committed Apr 11, 2023
1 parent c8927e9 commit c73e295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MiniZincIDE/moocsubmission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ void MOOCSubmission::rcvSubmissionResponse()
#endif
reply->deleteLater();
int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
if (status != 200) {
if (status >= 400) {
ui->textBrowser->insertPlainText(QString("Error %1: ").arg(status));
} else if (project.history != nullptr) {
project.history->commit();
Expand Down

0 comments on commit c73e295

Please sign in to comment.