preserve inner exception

This commit is contained in:
Master Kwoth 2016-05-19 11:29:35 +02:00
parent fcc5a47233
commit ea23bfac88

View File

@ -174,9 +174,9 @@ namespace NadekoBot.Extensions
var result = await SearchHelper.ShortenUrl(str).ConfigureAwait(false);
return result;
}
catch (WebException)
catch (WebException ex)
{
throw new InvalidOperationException("You must enable URL shortner in google developers console.");
throw new InvalidOperationException("You must enable URL shortner in google developers console.", ex);
}
}