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 | 63c6d749f1c8185f4ee88737cb5f53bfb181ee03 (patch) | |
tree | 409534eda239d20480a6148e6f28fc37b302ac50 | |
parent | 8c6351ef70bfd8a800417b4349b9432a53fb421e (diff) | |
download | txr-63c6d749f1c8185f4ee88737cb5f53bfb181ee03.tar.gz txr-63c6d749f1c8185f4ee88737cb5f53bfb181ee03.tar.bz2 txr-63c6d749f1c8185f4ee88737cb5f53bfb181ee03.zip |
car, cdr: self-identify in error message.
* lib.c (car, cdr): Type mismatch messages now identify
functions.
-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); } } |