From 3cc39c2eb90fa391c3da732525db0cdb52d7f958 Mon Sep 17 00:00:00 2001 From: Neelesh Chandola Date: Fri, 18 Jan 2019 23:16:35 +0530 Subject: [PATCH] Show filename in exception raised by expandFilename on windows (#10365) --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 32fa2885ea..181bc5728d 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).