Improved typereader not found message

This commit is contained in:
RogueException
2017-04-05 23:53:20 -03:00
parent eed0598f99
commit 14f0535a43

View File

@@ -93,7 +93,7 @@ namespace Discord.Commands.Builders
internal ParameterInfo Build(CommandInfo info)
{
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);
}