i forgot you can do this

This commit is contained in:
pizzaboxer 2023-08-26 14:57:52 +01:00
parent dec04ecbd1
commit 1fda39bfb5
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -20,14 +20,11 @@ namespace Bloxstrap.Utility
if (_loadStatus != AssemblyLoadStatus.Successful) if (_loadStatus != AssemblyLoadStatus.Successful)
_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.WriteLine(LOG_IDENT, $"Failed to create a shortcut for {lnkPath}!");
App.Logger.WriteException(LOG_IDENT, ex); App.Logger.WriteException(LOG_IDENT, ex);
if (ex.GetType() != typeof(FileNotFoundException))
throw;
if (_loadStatus == AssemblyLoadStatus.Failed) if (_loadStatus == AssemblyLoadStatus.Failed)
return; return;