mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update ServiceMain.cs
This commit is contained in:
parent
7456bf903e
commit
d758957d68
|
@ -66,6 +66,13 @@ namespace WelsonJS.Service
|
|||
}
|
||||
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
|
||||
scriptFilePath = Path.Combine(workingDirectory, "app.js");
|
||||
|
||||
|
@ -90,7 +97,7 @@ namespace WelsonJS.Service
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log("Exception. " + ex.Message);
|
||||
Log("Exception: " + ex.Message);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -118,7 +125,7 @@ namespace WelsonJS.Service
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log("Exception. " + ex.Message);
|
||||
Log("Exception: " + ex.Message);
|
||||
}
|
||||
scriptControl = null;
|
||||
|
||||
|
@ -133,7 +140,7 @@ namespace WelsonJS.Service
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log("Exception. " + ex.Message);
|
||||
Log("Exception: " + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user