From ea23bfac88b2d972b610d1e264f7fd05274193c5 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 19 May 2016 11:29:35 +0200 Subject: [PATCH] preserve inner exception --- NadekoBot/Classes/Extensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Classes/Extensions.cs b/NadekoBot/Classes/Extensions.cs index f82087bd..a38d55b1 100644 --- a/NadekoBot/Classes/Extensions.cs +++ b/NadekoBot/Classes/Extensions.cs @@ -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); } }