mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
* documented behaviour of recv on bufferd socket * fixes #12319- check exception using errorCode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user