Soften scanner and update to Nim v0.18.0

This commit is contained in:
Dominik Picheta 2018-07-04 10:45:26 +01:00
commit 07b493f066
2 changed files with 9 additions and 8 deletions

View file

@ -63,9 +63,8 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
try:
discard getContent(url, timeout=10000)
except HttpRequestError, TimeoutError:
echo "E: ", name, ": unable to fetch repository ", url, " ",
echo "W: ", name, ": unable to fetch repo ", url, " ",
getCurrentExceptionMsg()
result = false
except AssertionError:
echo "W: ", name, ": httpclient failed ", url, " ",
getCurrentExceptionMsg()