diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-10-08 06:59:45 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-10-08 06:59:45 -0700 |
commit | 5d795a63fbe292316de18a850aee2d045b869bd6 (patch) | |
tree | b8cc356afe3e736bf1d5d79d9f56116db290e239 | |
parent | 332ffb367b28a599e85140274b8308a4bb214d65 (diff) | |
download | txr-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.
-rw-r--r-- | unwind.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |