Skip to content

Commit

Permalink
Replace more instances of Console.WriteLine
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Jul 7, 2024
1 parent b94f3a0 commit 06a0d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ await ctx.RespondAsync(
}
else
{
Console.WriteLine(response);
Program.discord.Logger.LogError("Error ocurred uploading to Hastebin with status code: {code}\nPayload: {output}", hasteResult.StatusCode, response);
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Unknown error occurred during upload to Hastebin.\nPlease try again or contact the bot owner.");
}
}
Expand Down Expand Up @@ -479,7 +479,7 @@ public async Task DumpChannelOverrides(CommandContext ctx,
}
else
{
Console.WriteLine(output);
Program.discord.Logger.LogError("Error ocurred uploading to Hastebin with status code: {code}\nPayload: {output}", hasteResult.StatusCode, output);
await ctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Unknown error occurred during upload to Hastebin.\nPlease try again or contact the bot owner.");
}
}
Expand Down

0 comments on commit 06a0d4d

Please sign in to comment.