From 93d01c8eb68dadb06109cd40c9d2d3ba7122b729 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 21 Apr 2024 19:53:58 +0330 Subject: [PATCH] bug fix --- .../GanjoorService-Partials/GanjoorService-Naskban.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs index 8350df0f..6c241047 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-Naskban.cs @@ -268,7 +268,7 @@ namespace RMuseum.Services.Implementation HttpResponseMessage responseBook = await secureClient.GetAsync($"https://api.naskban.ir/api/pdf/{naskbanLink.PDFBookId}?includePages=true&includeBookText=false&includePageText=true"); if (responseBook.StatusCode != HttpStatusCode.OK) { - return new RServiceResult(false, "book fetch error: " + JsonConvert.DeserializeObject(await responseBook.Content.ReadAsStringAsync())); + return new RServiceResult(false, $"book fetch error bookid = {naskbanLink.PDFBookId} naskbanlinkid = {naskbanLink.Id} - " + JsonConvert.DeserializeObject(await responseBook.Content.ReadAsStringAsync())); } responseBook.EnsureSuccessStatusCode();