mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Always include an innerException when re-throwing
Hiding the previous thrown exception is a bad practice.
This commit is contained in:
parent
c644bac4e4
commit
3639ae3e88
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue