summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-09-16 20:06:01 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-09-17 06:20:34 -0700
commit51f72fcc0182a8b5b4bd729ec6c6138babc67c97 (patch)
treea521be7a7b52ce623f839b8f8f1caf05f5b4ef28 /lib.c
parentb16a0f6476a41fedc68b24d45de500e953ac069f (diff)
downloadtxr-51f72fcc0182a8b5b4bd729ec6c6138babc67c97.tar.gz
txr-51f72fcc0182a8b5b4bd729ec6c6138babc67c97.tar.bz2
txr-51f72fcc0182a8b5b4bd729ec6c6138babc67c97.zip
lib: fix self name of cmp-str.
* lib.c (cmp_str): Fix self name and use it in uw_throwf call.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.c b/lib.c
index 1a681c47..534013eb 100644
--- a/lib.c
+++ b/lib.c
@@ -5897,7 +5897,7 @@ val trim_str(val str)
val cmp_str(val astr, val bstr)
{
- val self = lit("bstr");
+ val self = lit("cmp-str");
switch (TYPE_PAIR(type(astr), type(bstr))) {
case TYPE_PAIR(LIT, LIT):
@@ -5934,8 +5934,8 @@ val cmp_str(val astr, val bstr)
return zero;
}
default:
- uw_throwf(error_s, lit("cmp-str: invalid operands ~s ~s"),
- astr, bstr, nao);
+ uw_throwf(error_s, lit("~a: invalid operands ~s ~s"),
+ self, astr, bstr, nao);
}
}