preserve inner exception
This commit is contained in:
parent
fcc5a47233
commit
ea23bfac88
@ -174,9 +174,9 @@ namespace NadekoBot.Extensions
|
|||||||
var result = await SearchHelper.ShortenUrl(str).ConfigureAwait(false);
|
var result = await SearchHelper.ShortenUrl(str).ConfigureAwait(false);
|
||||||
return result;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user