Changeset 13453


Ignore:
Timestamp:
08/11/11 07:30:40 (10 years ago)
Author:
ehuelsmann
Message:

Remove code duplication: operators know how to print themselves perfectly
well; this improves printing of "Wrong number of args" errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/WrongNumberOfArgumentsException.java

    r13440 r13453  
    7373  }
    7474        StringBuilder sb =
    75             new StringBuilder("Wrong number of arguments");
    76         LispObject lambdaName = operator.getLambdaName();
    77         if (lambdaName != null && lambdaName != NIL) {
    78             sb.append(" for ");
    79             sb.append(operator.getLambdaName().princToString());
    80         }
     75            new StringBuilder("Wrong number of arguments for "
     76                              + operator.princToString());
    8177  if(expectedArgs >= 0) {
    8278      sb.append("; ");
Note: See TracChangeset for help on using the changeset viewer.