From 4b4e4fc029d3f151c1e8bcdafc1d9b381a7142a6 Mon Sep 17 00:00:00 2001 From: Tomohiro Date: Fri, 18 Jan 2019 17:00:32 +0900 Subject: [PATCH] Fix unhandled exception that raised when nim was executed with --cc:vcc option (#10356) --- tools/vccexe/vccenv.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vccexe/vccenv.nim b/tools/vccexe/vccenv.nim index 6ddf2e29a5..724fe992a4 100644 --- a/tools/vccexe/vccenv.nim +++ b/tools/vccexe/vccenv.nim @@ -44,4 +44,4 @@ proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string = let key = $version let val = getEnv key if val.len > 0: - result = expandFilename(val & vcvarsallRelativePath) + result = try: expandFilename(val & vcvarsallRelativePath) except OSError: ""