Skip to content

Commit

Permalink
fix: patch todo in NamedTypeReader (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe4evr authored and foxbot committed Oct 3, 2019
1 parent 0d54207 commit 0bda8a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Discord.Net.Commands/Readers/NamedArgumentTypeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public override async Task<TypeReaderResult> ReadAsync(ICommandContext context,
}
catch (Exception ex)
{
//TODO: use the Exception overload after a rebase on latest
return TypeReaderResult.FromError(CommandError.Exception, ex.Message);
return TypeReaderResult.FromError(ex);
}
}

Expand Down

0 comments on commit 0bda8a4

Please sign in to comment.