diff --git a/Wox/App.xaml.cs b/Wox/App.xaml.cs index e5a7b6ab17..2412eb3d90 100644 --- a/Wox/App.xaml.cs +++ b/Wox/App.xaml.cs @@ -1,5 +1,6 @@ using System; using System.Diagnostics; +using System.Net; using System.Windows; using Squirrel; using Wox.Core.Plugin; @@ -62,12 +63,16 @@ namespace Wox await Updater.UpdateApp(); } } + catch (WebException ex) + { + Log.Error(ex); + } catch (Exception exception) { const string info = "Update.exe not found, not a Squirrel-installed app?"; if (exception.Message == info) { - Log.Warn("info"); + Log.Warn(info); } else { diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 752d9008b8..46d8128ebb 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -878,6 +878,10 @@ namespace Wox await updater.UpdateApp(); } } + catch (WebException ex) + { + Log.Error(ex); + } catch (Exception ex) { Log.Error(ex);