fixes #12319 - change exception handling for finish.exe (#12413)

* documented behaviour of recv on bufferd socket

* fixes #12319- check exception using errorCode
This commit is contained in:
Gampol T
2019-11-15 19:28:55 +07:00
committed by Andreas Rumpf
parent 76179cbec2
commit 83b7656c0e

View File

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