Changeset 5262


Ignore:
Timestamp:
12/27/03 05:36:41 (18 years ago)
Author:
piso
Message:

getMessage()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/TypeError.java

    r5165 r5262  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: TypeError.java,v 1.15 2003-12-16 17:17:10 piso Exp $
     5 * $Id: TypeError.java,v 1.16 2003-12-27 05:36:41 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    104104            type = String.valueOf(expectedType);
    105105        if (type != null) {
    106             if (name == null)
    107                 name = "Datum";
    108             sb.append(name);
    109             sb.append(" is not a");
    110             if ("aeiou".indexOf(type.charAt(0)) >= 0)
    111                 sb.append('n');
    112             sb.append(' ');
     106            if (name != null) {
     107                sb.append("The value ");
     108                sb.append(name);
     109            } else
     110                sb.append("Value");
     111            sb.append(" is not of type ");
    113112            sb.append(type);
    114113        } else if (name != null) {
Note: See TracChangeset for help on using the changeset viewer.