mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
Update ServiceMain.cs
This commit is contained in:
parent
7456bf903e
commit
d758957d68
|
@ -66,6 +66,13 @@ namespace WelsonJS.Service
|
||||||
}
|
}
|
||||||
Directory.SetCurrentDirectory(workingDirectory);
|
Directory.SetCurrentDirectory(workingDirectory);
|
||||||
|
|
||||||
|
// set script name
|
||||||
|
if (string.IsNullOrEmpty(scriptName))
|
||||||
|
{
|
||||||
|
scriptName = "helloworld";
|
||||||
|
Log("Script name not provided. Using default value: " + scriptName);
|
||||||
|
}
|
||||||
|
|
||||||
// set path of the script
|
// set path of the script
|
||||||
scriptFilePath = Path.Combine(workingDirectory, "app.js");
|
scriptFilePath = Path.Combine(workingDirectory, "app.js");
|
||||||
|
|
||||||
|
@ -90,7 +97,7 @@ namespace WelsonJS.Service
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log("Exception. " + ex.Message);
|
Log("Exception: " + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -118,7 +125,7 @@ namespace WelsonJS.Service
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log("Exception. " + ex.Message);
|
Log("Exception: " + ex.Message);
|
||||||
}
|
}
|
||||||
scriptControl = null;
|
scriptControl = null;
|
||||||
|
|
||||||
|
@ -133,7 +140,7 @@ namespace WelsonJS.Service
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log("Exception. " + ex.Message);
|
Log("Exception: " + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user