@ -99,7 +99,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( DownloadClientException ex )
catch ( DownloadClientException ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , ex . Message );
return Enumerable . Empty < DownloadClientItem > ( ) ;
return Enumerable . Empty < DownloadClientItem > ( ) ;
}
}
@ -241,7 +241,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( DownloadClientAuthenticationException ex )
catch ( DownloadClientAuthenticationException ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , ex . Message );
return new NzbDroneValidationFailure ( "Username" , "Authentication failure" )
return new NzbDroneValidationFailure ( "Username" , "Authentication failure" )
{
{
DetailedDescription = "Please verify your username and password."
DetailedDescription = "Please verify your username and password."
@ -249,7 +249,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( WebException ex )
catch ( WebException ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , "Unable to connect to qBittorrent" );
if ( ex . Status = = WebExceptionStatus . ConnectFailure )
if ( ex . Status = = WebExceptionStatus . ConnectFailure )
{
{
return new NzbDroneValidationFailure ( "Host" , "Unable to connect" )
return new NzbDroneValidationFailure ( "Host" , "Unable to connect" )
@ -261,7 +261,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( Exception ex )
catch ( Exception ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , "Unable to test qBittorrent" );
return new NzbDroneValidationFailure ( String . Empty , "Unknown exception: " + ex . Message ) ;
return new NzbDroneValidationFailure ( String . Empty , "Unknown exception: " + ex . Message ) ;
}
}
@ -296,7 +296,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( Exception ex )
catch ( Exception ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , "Failed to test qBittorrent" );
return new NzbDroneValidationFailure ( String . Empty , "Unknown exception: " + ex . Message ) ;
return new NzbDroneValidationFailure ( String . Empty , "Unknown exception: " + ex . Message ) ;
}
}
@ -311,7 +311,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
}
catch ( Exception ex )
catch ( Exception ex )
{
{
_logger . Error ( ex );
_logger . Error ( ex , "Failed to get torrents" );
return new NzbDroneValidationFailure ( String . Empty , "Failed to get the list of torrents: " + ex . Message ) ;
return new NzbDroneValidationFailure ( String . Empty , "Failed to get the list of torrents: " + ex . Message ) ;
}
}