* documented behaviour of recv on bufferd socket * fixes #12319- check exception using errorCode
This commit is contained in:
parent
76179cbec2
commit
83b7656c0e
1 changed files with 2 additions and 0 deletions
|
|
@ -225,6 +225,8 @@ proc main() =
|
||||||
if x.len == 0: continue
|
if x.len == 0: continue
|
||||||
let y = try: expandFilename(if x[0] == '"' and x[^1] == '"':
|
let y = try: expandFilename(if x[0] == '"' and x[^1] == '"':
|
||||||
substr(x, 1, x.len-2) else: x)
|
substr(x, 1, x.len-2) else: x)
|
||||||
|
except OSError as e:
|
||||||
|
if e.errorCode == 0: x else: ""
|
||||||
except: ""
|
except: ""
|
||||||
if y.cmpIgnoreCase(nimDesiredPath) == 0:
|
if y.cmpIgnoreCase(nimDesiredPath) == 0:
|
||||||
nimAlreadyInPath = true
|
nimAlreadyInPath = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue