summaryrefslogtreecommitdiffstats
path: root/unwind.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-08 06:59:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-08 06:59:45 -0700
commit5d795a63fbe292316de18a850aee2d045b869bd6 (patch)
treeb8cc356afe3e736bf1d5d79d9f56116db290e239 /unwind.c
parent332ffb367b28a599e85140274b8308a4bb214d65 (diff)
downloadtxr-5d795a63fbe292316de18a850aee2d045b869bd6.tar.gz
txr-5d795a63fbe292316de18a850aee2d045b869bd6.tar.bz2
txr-5d795a63fbe292316de18a850aee2d045b869bd6.zip
Report objects with ~s in exception registration code.
* unwind.c (uw_register_subtype): Error messages should print symbols with ~s, not the information-losing ~a.
Diffstat (limited to 'unwind.c')
-rw-r--r--unwind.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unwind.c b/unwind.c
index f3f6f74f..6f488ae3 100644
--- a/unwind.c
+++ b/unwind.c
@@ -426,22 +426,22 @@ val uw_register_subtype(val sub, val sup)
if (sup == t)
return sup;
uw_throwf(type_error_s,
- lit("cannot define ~a as an exception subtype of ~a"),
+ lit("cannot define ~s as an exception subtype of ~s"),
sub, sup, nao);
}
if (sup == nil) {
uw_throwf(type_error_s,
- lit("cannot define ~a as an exception subtype of ~a"),
+ lit("cannot define ~s as an exception subtype of ~s"),
sub, sup, nao);
}
if (uw_exception_subtype_p(sub, sup))
- uw_throwf(type_error_s, lit("~a is already an exception subtype of ~a"),
+ uw_throwf(type_error_s, lit("~s is already an exception subtype of ~s"),
sub, sup, nao);
if (uw_exception_subtype_p(sup, sub))
- uw_throwf(type_error_s, lit("~a is already an exception supertype of ~a"),
+ uw_throwf(type_error_s, lit("~s is already an exception supertype of ~s"),
sub, sup, nao);
/* If sup symbol not registered, then we make it