mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Log inner error when failing to retrieve a Discord channel
This commit is contained in:
@@ -661,7 +661,11 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
var discordChannelResponse = await channelsClient.GetChannelAsync(new Snowflake(channelId), cancellationToken);
|
||||
if (!discordChannelResponse.IsSuccess)
|
||||
{
|
||||
Logger.LogWarning("Error retrieving discord channel {0}: {1}", channelId, discordChannelResponse.Error.Message);
|
||||
Logger.LogWarning(
|
||||
"Error retrieving discord channel {0}: {1} Inner: {2}",
|
||||
channelId,
|
||||
discordChannelResponse.Error.Message,
|
||||
discordChannelResponse.Inner?.Error?.Message);
|
||||
remapRequired = true;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user