diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2019-01-18 23:16:35 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-01-18 18:46:35 +0100 |
commit | 3cc39c2eb90fa391c3da732525db0cdb52d7f958 (patch) | |
tree | b3ac67e03d06ecbead328d9385a1e0564a9ed288 /lib | |
parent | 8399e0f78ad7ef81183cb6797fa78f8c8116e502 (diff) | |
download | Nim-3cc39c2eb90fa391c3da732525db0cdb52d7f958.tar.gz |
Show filename in exception raised by expandFilename on windows (#10365)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 32fa2885e..181bc5728 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1427,7 +1427,7 @@ proc expandFilename*(filename: string): string {.rtl, extern: "nos$1", for x in walkFiles(result.string): result = x if not existsFile(result) and not existsDir(result): - raise newException(OSError, "file does not exist") + raise newException(OSError, "file '" & result & "' does not exist") else: # according to Posix we don't need to allocate space for result pathname. # But we need to free return value with free(3). |