From 9ca70e8346c4ed68d3afa6389c4c4386f5ff7fcd Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 14 Dec 2018 17:51:57 +0100 Subject: [PATCH] Show full path of module directory when module is missing --- Upsilon/Binder/Binder.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 0966fbf..19252fe 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Collections.Immutable; +using System.IO; using System.Linq; using Upsilon.BaseTypes; using Upsilon.BaseTypes.Number; @@ -257,8 +258,9 @@ namespace Upsilon.Binder var module = _script.Options.ModuleHandler.GetModule(_script, moduleName); if (module == null) { + var fullPath = Path.GetFullPath(_script.Options.ScriptLoader.ModulesPath); _diagnostics.LogError( - $"Can't find module '{moduleName}' in folder '{_script.Options.ScriptLoader.ModulesPath}'", + $"Can't find module '{moduleName}' in folder '{fullPath}'", parameter.Span); } else