Skip to content

Commit 0bda8a4

Browse files
Joe4evrfoxbot
authored andcommitted
fix: patch todo in NamedTypeReader (#1392)
1 parent 0d54207 commit 0bda8a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Discord.Net.Commands/Readers/NamedArgumentTypeReader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ public override async Task<TypeReaderResult> ReadAsync(ICommandContext context,
4141
}
4242
catch (Exception ex)
4343
{
44-
//TODO: use the Exception overload after a rebase on latest
45-
return TypeReaderResult.FromError(CommandError.Exception, ex.Message);
44+
return TypeReaderResult.FromError(ex);
4645
}
4746
}
4847

0 commit comments

Comments
 (0)