1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-24 16:53:54 +00:00

Fixed build error.

This commit is contained in:
kay.one 2011-11-12 20:22:13 -08:00
parent 8a7bc7bf80
commit 18b10d45c6
2 changed files with 10 additions and 8 deletions

View file

@ -63,6 +63,7 @@
<Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Exceptioneer.WindowsFormsClient, Version=1.0.0.812, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="Ninject">
<HintPath>..\packages\Ninject.2.2.1.4\lib\net40-Full\Ninject.dll</HintPath>
</Reference>

View file

@ -2,6 +2,7 @@
using System.Diagnostics;
using System.Runtime.Remoting;
using System.Timers;
using Exceptioneer.WindowsFormsClient;
using NLog;
using Ninject;
using NzbDrone.Common;
@ -106,15 +107,15 @@ namespace NzbDrone.Providers
{
Console.WriteLine("EPIC FAIL: {0}", excepion);
#if DEBUG
#else
new Client
if (EnviromentProvider.IsProduction)
{
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
ApplicationName = "NzbDrone",
CurrentException = excepion as Exception
}.Submit();
#endif
new Client
{
ApiKey = "43BBF60A-EB2A-4C1C-B09E-422ADF637265",
ApplicationName = "NzbDrone",
CurrentException = excepion as Exception
}.Submit();
}
Logger.Fatal("EPIC FAIL: {0}", excepion);
}