Handle all errors when calling httpclient.

This commit is contained in:
Dominik Picheta 2015-09-01 17:59:14 +01:00
parent eb5ca12960
commit df1b9353e4

View File

@ -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 =