Browse Source

Improved typereader not found message

tags/1.0.0-rc2
RogueException 8 years ago
parent
commit
14f0535a43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Builders/ParameterBuilder.cs

+ 1
- 1
src/Discord.Net.Commands/Builders/ParameterBuilder.cs View File

@@ -93,7 +93,7 @@ namespace Discord.Commands.Builders
internal ParameterInfo Build(CommandInfo info) internal ParameterInfo Build(CommandInfo info)
{ {
if (TypeReader == null) if (TypeReader == null)
throw new InvalidOperationException($"No default TypeReader found, one must be specified");
throw new InvalidOperationException($"No type reader found for type {ParameterType.Name}, one must be specified");


return new ParameterInfo(this, info, Command.Module.Service); return new ParameterInfo(this, info, Command.Module.Service);
} }


Loading…
Cancel
Save