Skip to content

Commit fee8a5f

Browse files
committed
Minor tweaks in offline metadata error handling
1 parent 1098dd5 commit fee8a5f

File tree

1 file changed

+2
-2
lines changed
  • cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Offline

1 file changed

+2
-2
lines changed

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Offline/Http.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ parsePoolUrl poolUrl =
156156
}
157157

158158
wrapHttpException :: HttpException -> FetchError
159-
wrapHttpException err = FEUrlParseFail poolUrl (textShow err)
159+
wrapHttpException err = FEHttpException poolUrl (textShow err)
160160

161161
renderFetchError :: FetchError -> Text
162162
renderFetchError fe =
@@ -176,7 +176,7 @@ renderFetchError fe =
176176
["Offline pool data when fetching metadata from ", url, " exceeded 512 bytes."]
177177
FEUrlParseFail (PoolUrl url) err ->
178178
mconcat
179-
["URL parse error from for ", url, " resulted in : ", err]
179+
["URL parse error for ", url, " resulted in : ", err]
180180
FEJsonDecodeFail (PoolUrl url) err ->
181181
mconcat
182182
["JSON decode error from when fetching metadata from ", url, " resulted in : ", err]

0 commit comments

Comments
 (0)