mirror of https://github.com/winsw/winsw
parent
2ffdbde6a9
commit
ed0633b53f
|
@ -190,19 +190,11 @@ namespace winsw
|
|||
|
||||
if (arguments == null)
|
||||
{
|
||||
var tagName = "arguments";
|
||||
var argumentsNode = dom.SelectSingleNode("//" + tagName);
|
||||
var argumentsNode = dom.SelectSingleNode("//arguments");
|
||||
|
||||
if (argumentsNode == null)
|
||||
{
|
||||
if (AppendTags("startargument") == null)
|
||||
{
|
||||
throw new InvalidDataException("<" + tagName + "> is missing in configuration XML");
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
return Environment.ExpandEnvironmentVariables(argumentsNode.InnerText);
|
||||
|
|
Loading…
Reference in New Issue