Skip to content

Commit

Permalink
fix huge flalert on download errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Jan 14, 2025
1 parent 658d26a commit d452d1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loader/src/server/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ class ModDownload::Impl final {
}
else {
m_status = DownloadStatusError {
.details = value->string().unwrapOr("Unknown error"),
.details = fmt::format("Server returned error {}", event->getValue()->code()),
};
log::error("Failed to download {}, server returned error {}", m_id, event->getValue()->code());
log::error("{}", event->getValue()->string().unwrapOr("No response"));
}
}
else if (auto progress = event->getProgress()) {
Expand Down

0 comments on commit d452d1d

Please sign in to comment.