mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
fix: do not use ResultError#IsUserOrEnvironmentError
This commit is contained in:
parent
ac8621a2ec
commit
0f86bb719d
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Remora.Discord.Commands.Extensions;
|
|
||||||
using Remora.Results;
|
using Remora.Results;
|
||||||
|
|
||||||
namespace Octobot.Extensions;
|
namespace Octobot.Extensions;
|
||||||
|
@ -19,7 +18,7 @@ public static class LoggerExtensions
|
||||||
/// <param name="message">The message to use if this result has failed.</param>
|
/// <param name="message">The message to use if this result has failed.</param>
|
||||||
public static void LogResult(this ILogger logger, IResult result, string? message = "")
|
public static void LogResult(this ILogger logger, IResult result, string? message = "")
|
||||||
{
|
{
|
||||||
if (result.IsSuccess || result.Error.IsUserOrEnvironmentError())
|
if (result.IsSuccess)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue