Skip to content

Commit

Permalink
Launcher Exception Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
I5UCC committed Jul 8, 2023
1 parent a434129 commit 75bdf7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Binary file modified TextboxSTT.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions TextboxSTT_Launcher/TextboxSTT_Launcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ static void Main(string[] args)
Directory.Delete(cache_path, true);
Directory.CreateDirectory(cache_path);

if (process.ExitCode != 0)
throw new Exception("Something unexpectedly went wrong installing TextboxSTT. ExitCode: " + process.ExitCode.ToString());

Console.WriteLine("\nTextboxSTT installed.\n");

File.Create(installed_file);
Expand Down
3 changes: 3 additions & 0 deletions TextboxSTT_Launcher/obs_only_Launcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ static void Main(string[] args)
Directory.Delete(cache_path, true);
Directory.CreateDirectory(cache_path);

if (process.ExitCode != 0)
throw new Exception("Something unexpectedly went wrong installing TextboxSTT. ExitCode: " + process.ExitCode.ToString());

Console.WriteLine("\nTextboxSTT installed.\n");

File.Create(installed_file);
Expand Down
Binary file modified obs_only.exe
Binary file not shown.

0 comments on commit 75bdf7e

Please sign in to comment.