mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 10:00:57 +00:00
Update WelsonJS.Toolkit/WelsonJS.Launcher/Program.cs
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
c677c6907a
commit
a03ea7f3b3
|
|
@ -193,9 +193,18 @@ namespace WelsonJS.Launcher
|
|||
|
||||
Directory.CreateDirectory(workingDirectory);
|
||||
}
|
||||
catch
|
||||
catch (IOException ex)
|
||||
{
|
||||
throw new Exception("Instance Initialization failed");
|
||||
throw new Exception("Instance Initialization failed due to an IO error.", ex);
|
||||
}
|
||||
catch (UnauthorizedAccessException ex)
|
||||
{
|
||||
throw new Exception("Instance Initialization failed due to insufficient permissions.", ex);
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
// Let InvalidOperationException bubble up as it is thrown intentionally above
|
||||
throw;
|
||||
}
|
||||
|
||||
return workingDirectory;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user