summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-01-05 14:34:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-01-05 14:34:51 -0800
commit81abe0f260dcfb4bb5d6b9f5ddf358a65e960cab (patch)
tree409534eda239d20480a6148e6f28fc37b302ac50 /lib.c
parente75e6bda47819e2be53615a2cc8f3d1d20741be2 (diff)
downloadtxr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index c126cada..31351fba 100644
--- a/lib.c
+++ b/lib.c
@@ -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);
}
}