If a non-globbed included file from config cannot be found then warn the user
parent
810f4b9835
commit
1fcb919798
|
@ -180,6 +180,7 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
if (ReadConfig(sources[i]))
|
if (ReadConfig(sources[i]))
|
||||||
iniFileExists = true;
|
iniFileExists = true;
|
||||||
|
|
||||||
AddIncludes(sources);
|
AddIncludes(sources);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +236,14 @@ namespace OpenSim
|
||||||
string path = Path.Combine(basepath, chunkWithoutWildcards);
|
string path = Path.Combine(basepath, chunkWithoutWildcards);
|
||||||
path = Path.GetFullPath(path) + chunkWithWildcards;
|
path = Path.GetFullPath(path) + chunkWithWildcards;
|
||||||
string[] paths = Util.Glob(path);
|
string[] paths = Util.Glob(path);
|
||||||
|
|
||||||
|
// If the include path contains no wildcards, then warn the user that it wasn't found.
|
||||||
|
if (wildcardIndex == -1 && paths.Length == 0)
|
||||||
|
{
|
||||||
|
m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
foreach (string p in paths)
|
foreach (string p in paths)
|
||||||
{
|
{
|
||||||
if (!sources.Contains(p))
|
if (!sources.Contains(p))
|
||||||
|
@ -245,6 +254,7 @@ namespace OpenSim
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check if we can convert the string to a URI
|
/// Check if we can convert the string to a URI
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue