Improve network error messages (#4704)

This commit is contained in:
nerix
2023-07-01 14:59:59 +02:00
committed by GitHub
parent d2f1516818
commit 22b290cb2d
15 changed files with 378 additions and 169 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ void uploadImageToNuuls(RawImageData imageData, ChannelPtr channel,
.onError([channel](NetworkResult result) -> bool {
auto errorMessage =
QString("An error happened while uploading your image: %1")
.arg(result.status());
.arg(result.formatError());
// Try to read more information from the result body
auto obj = result.parseJson();