소스 검색

Improve network error message

Sander Kleykens 8 년 전
부모
커밋
da9f7c707a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/lib/multipageloader.cc

+ 2 - 2
src/lib/multipageloader.cc

@@ -407,8 +407,8 @@ void ResourceObject::amfinished(QNetworkReply * reply) {
 			//      no HTTP access at all, so we want network errors to be reported
 			//      with a higher priority than HTTP ones.
 			//      See: http://doc-snapshot.qt-project.org/4.8/qnetworkreply.html#NetworkError-enum
-			error(QString("Failed to load %1, with network status code %2 and http status code %3")
-				.arg(reply->url().toString()).arg(networkStatus).arg(httpStatus));
+			error(QString("Failed to load %1, with network status code %2 and http status code %3 - %4")
+				.arg(reply->url().toString()).arg(networkStatus).arg(httpStatus).arg(reply->errorString()));
 			httpErrorCode = networkStatus > 0 ? (networkStatus + 1000) : httpStatus;
 			return;
 		}