Skip to content

Commit

Permalink
i forgot you can do this
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 26, 2023
1 parent dec04ec commit 1fda39b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Bloxstrap/Utility/Shortcut.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ public static void Create(string exePath, string exeArgs, string lnkPath)
if (_loadStatus != AssemblyLoadStatus.Successful)
_loadStatus = AssemblyLoadStatus.Successful;
}
catch (Exception ex)
catch (FileNotFoundException ex)
{
App.Logger.WriteLine(LOG_IDENT, $"Failed to create a shortcut for {lnkPath}!");
App.Logger.WriteException(LOG_IDENT, ex);

if (ex.GetType() != typeof(FileNotFoundException))
throw;

if (_loadStatus == AssemblyLoadStatus.Failed)
return;

Expand Down

0 comments on commit 1fda39b

Please sign in to comment.