summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGampol T <gampolt@gmail.com>2019-11-15 19:28:55 +0700
committerAndreas Rumpf <rumpf_a@web.de>2019-11-15 13:28:55 +0100
commit83b7656c0e723a2e68459733e7706f3611a1ddc8 (patch)
tree2aca2b90691906b1135cb6c5bde9ac4beccdd021
parent76179cbec287314831afd5e45f49cbfd8e9111c8 (diff)
downloadNim-83b7656c0e723a2e68459733e7706f3611a1ddc8.tar.gz
fixes #12319 - change exception handling for finish.exe (#12413)
* documented behaviour of recv on bufferd socket

* fixes #12319- check exception using errorCode
-rw-r--r--tools/finish.nim2
1 files changed, 2 insertions, 0 deletions
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