diff --git a/TLSharp.Tests/TLSharpTests.cs b/TLSharp.Tests/TLSharpTests.cs index 97deaa6..ccd88f1 100644 --- a/TLSharp.Tests/TLSharpTests.cs +++ b/TLSharp.Tests/TLSharpTests.cs @@ -49,9 +49,10 @@ namespace TLSharp.Tests { return new TelegramClient(ApiId, ApiHash); } - catch (MissingApiConfigurationException) + catch (MissingApiConfigurationException ex) { - throw new Exception($"Please add your API settings to the `app.config` file. (More info: {MissingApiConfigurationException.InfoUrl})"); + throw new Exception($"Please add your API settings to the `app.config` file. (More info: {MissingApiConfigurationException.InfoUrl})", + ex); } } diff --git a/TeleSharp.TL/ObjectDeserializer.cs b/TeleSharp.TL/ObjectDeserializer.cs index f6e256c..3c695ab 100644 --- a/TeleSharp.TL/ObjectDeserializer.cs +++ b/TeleSharp.TL/ObjectDeserializer.cs @@ -21,7 +21,7 @@ namespace TeleSharp.TL } catch(Exception ex) { - throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !"); + throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !", ex); } if (t.IsSubclassOf(typeof(TLMethod))) {