From 83b7656c0e723a2e68459733e7706f3611a1ddc8 Mon Sep 17 00:00:00 2001 From: Gampol T Date: Fri, 15 Nov 2019 19:28:55 +0700 Subject: [PATCH] fixes #12319 - change exception handling for finish.exe (#12413) * documented behaviour of recv on bufferd socket * fixes #12319- check exception using errorCode --- tools/finish.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/finish.nim b/tools/finish.nim index 6dd55793b..ccbb698f4 100644 --- a/tools/finish.nim +++ b/tools/finish.nim @@ -225,6 +225,8 @@ proc main() = if x.len == 0: continue let y = try: expandFilename(if x[0] == '"' and x[^1] == '"': substr(x, 1, x.len-2) else: x) + except OSError as e: + if e.errorCode == 0: x else: "" except: "" if y.cmpIgnoreCase(nimDesiredPath) == 0: nimAlreadyInPath = true