Browse Source

fix: pass the entire Exception into ExecuteResult

pull/1181/head
Christopher F 6 years ago
parent
commit
f549da50e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Info/CommandInfo.cs

+ 1
- 1
src/Discord.Net.Commands/Info/CommandInfo.cs View File

@@ -273,7 +273,7 @@ namespace Discord.Commands
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)


Loading…
Cancel
Save