Show full path of module directory when module is missing

This commit is contained in:
2018-12-14 17:51:57 +01:00
parent b2f31490bc
commit 9ca70e8346

View File

@@ -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