This commit is contained in:
bao-qian
2016-05-09 03:18:36 +01:00
parent 340a151302
commit 7dd9b3fa0c
2 changed files with 10 additions and 1 deletions

View File

@@ -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
{

View File

@@ -878,6 +878,10 @@ namespace Wox
await updater.UpdateApp();
}
}
catch (WebException ex)
{
Log.Error(ex);
}
catch (Exception ex)
{
Log.Error(ex);