Defect in AddInvoker method in Command class

Topics: CAB & Smart Client Software Factory
Jun 2, 2006 at 2:34 PM
originally posted by: rplaire

The exception thrown in that method if no CommandAdpater is found has two format indexes, but only one is provided:

if (adapter == null)
{
throw new CommandException(String.Format(CultureInfo.CurrentCulture,
Resources.CannotGetCommandAdapter, invoker.GetType()));
...

should be:

if (adapter == null)
{
throw new CommandException(String.Format(CultureInfo.CurrentCulture,
Resources.CannotGetCommandAdapter, eventName, invoker.GetType()));
... ^^^^^^^^