Skip to content

Commit

Permalink
fix: 修复未使用 Json 字符串上报下载错误的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Jun 23, 2024
1 parent b016348 commit 39202f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CSharp-OpenBMCLAPI/Modules/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,11 @@ internal async Task DownloadFile(string hash, string path, bool force = false)
await this.client.PostAsJsonAsync("openbmclapi/report", new
{
urls = urls,
error = ex.ExceptionToDetail()
error = JsonConvert.SerializeObject(new
{
message = ex.Message,
type = ex.GetType().FullName
})
});
}
catch { }
Expand Down

0 comments on commit 39202f8

Please sign in to comment.