diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-01-05 14:34:51 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-01-05 14:34:51 -0800 |
commit | 81abe0f260dcfb4bb5d6b9f5ddf358a65e960cab (patch) | |
tree | 409534eda239d20480a6148e6f28fc37b302ac50 /lib.c | |
parent | e75e6bda47819e2be53615a2cc8f3d1d20741be2 (diff) | |
download | txr-81abe0f260dcfb4bb5d6b9f5ddf358a65e960cab.tar.gz txr-81abe0f260dcfb4bb5d6b9f5ddf358a65e960cab.tar.bz2 txr-81abe0f260dcfb4bb5d6b9f5ddf358a65e960cab.zip |
car, cdr: self-identify in error message.
* lib.c (car, cdr): Type mismatch messages now identify
functions.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -393,7 +393,7 @@ val car(val cons) } } default: - type_mismatch(lit("~s is not a cons"), cons, nao); + type_mismatch(lit("car: ~s is not a cons"), cons, nao); } } @@ -434,7 +434,7 @@ val cdr(val cons) } } default: - type_mismatch(lit("~s is not a cons"), cons, nao); + type_mismatch(lit("cdr: ~s is not a cons"), cons, nao); } } |