Show filename in exception raised by expandFilename on windows (#10365)
This commit is contained in:
parent
8399e0f78a
commit
3cc39c2eb9
1 changed files with 1 additions and 1 deletions
|
|
@ -1427,7 +1427,7 @@ proc expandFilename*(filename: string): string {.rtl, extern: "nos$1",
|
||||||
for x in walkFiles(result.string):
|
for x in walkFiles(result.string):
|
||||||
result = x
|
result = x
|
||||||
if not existsFile(result) and not existsDir(result):
|
if not existsFile(result) and not existsDir(result):
|
||||||
raise newException(OSError, "file does not exist")
|
raise newException(OSError, "file '" & result & "' does not exist")
|
||||||
else:
|
else:
|
||||||
# according to Posix we don't need to allocate space for result pathname.
|
# according to Posix we don't need to allocate space for result pathname.
|
||||||
# But we need to free return value with free(3).
|
# But we need to free return value with free(3).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue