Skip to content

Commit

Permalink
fix: pass the entire Exception into ExecuteResult
Browse files Browse the repository at this point in the history
  • Loading branch information
foxbot committed Oct 20, 2018
1 parent 6260749 commit f549da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.Commands/Info/CommandInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private async Task<IResult> ExecuteInternalAsync(ICommandContext context, object
var wrappedEx = new CommandException(this, context, ex);
await Module.Service._cmdLogger.ErrorAsync(wrappedEx).ConfigureAwait(false);

var result = ExecuteResult.FromError(CommandError.Exception, ex.Message);
var result = ExecuteResult.FromError(ex);
await Module.Service._commandExecutedEvent.InvokeAsync(this, context, result).ConfigureAwait(false);

if (Module.Service._throwOnError)
Expand Down

0 comments on commit f549da5

Please sign in to comment.