Handle all errors when calling httpclient.
This commit is contained in:
parent
eb5ca12960
commit
df1b9353e4
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
|
|||
except AssertionError:
|
||||
echo "W: ", name, ": httpclient failed ", url, " ",
|
||||
getCurrentExceptionMsg()
|
||||
except:
|
||||
echo "W: Another error attempting to request: ", url
|
||||
echo " Error was: ", getCurrentExceptionMsg()
|
||||
|
||||
|
||||
proc check(): int =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue