Show full path of module directory when module is missing
This commit is contained in:
parent
b2f31490bc
commit
9ca70e8346
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Immutable;
|
using System.Collections.Immutable;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Upsilon.BaseTypes;
|
using Upsilon.BaseTypes;
|
||||||
using Upsilon.BaseTypes.Number;
|
using Upsilon.BaseTypes.Number;
|
||||||
|
@ -257,8 +258,9 @@ namespace Upsilon.Binder
|
||||||
var module = _script.Options.ModuleHandler.GetModule(_script, moduleName);
|
var module = _script.Options.ModuleHandler.GetModule(_script, moduleName);
|
||||||
if (module == null)
|
if (module == null)
|
||||||
{
|
{
|
||||||
|
var fullPath = Path.GetFullPath(_script.Options.ScriptLoader.ModulesPath);
|
||||||
_diagnostics.LogError(
|
_diagnostics.LogError(
|
||||||
$"Can't find module '{moduleName}' in folder '{_script.Options.ScriptLoader.ModulesPath}'",
|
$"Can't find module '{moduleName}' in folder '{fullPath}'",
|
||||||
parameter.Span);
|
parameter.Span);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue