mirror of
https://github.com/logos-messaging/packages.git
synced 2026-01-03 22:53:10 +00:00
Handle all errors when calling httpclient.
This commit is contained in:
parent
eb5ca12960
commit
df1b9353e4
@ -63,6 +63,9 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
|
|||||||
except AssertionError:
|
except AssertionError:
|
||||||
echo "W: ", name, ": httpclient failed ", url, " ",
|
echo "W: ", name, ": httpclient failed ", url, " ",
|
||||||
getCurrentExceptionMsg()
|
getCurrentExceptionMsg()
|
||||||
|
except:
|
||||||
|
echo "W: Another error attempting to request: ", url
|
||||||
|
echo " Error was: ", getCurrentExceptionMsg()
|
||||||
|
|
||||||
|
|
||||||
proc check(): int =
|
proc check(): int =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user