From df1b9353e45f9a74c70de614931cd8a5ca9c7383 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 1 Sep 2015 17:59:14 +0100 Subject: [PATCH] Handle all errors when calling httpclient. --- package_scanner.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package_scanner.nim b/package_scanner.nim index 094cbd3..ba65618 100644 --- a/package_scanner.nim +++ b/package_scanner.nim @@ -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 =