summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-12 06:22:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-03-12 06:22:59 -0800
commitd39d327262f76f1c2de46fe7b09d6492a4c0941b (patch)
treed70c2f8987856b4e240ad9c7ea31840677744c2e
parent05df1eea56e609ff574f76e87d07c8d8fa9d3321 (diff)
downloadtxr-d39d327262f76f1c2de46fe7b09d6492a4c0941b.tar.gz
txr-d39d327262f76f1c2de46fe7b09d6492a4c0941b.tar.bz2
txr-d39d327262f76f1c2de46fe7b09d6492a4c0941b.zip
lib: fix hard-coded cat-str in diagnostic.
* lib.c (cat_str_measure): Use the self parameter in diagnostics rather than cat-str, so errors are reported against the correct function.
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 353a9614..fa430813 100644
--- a/lib.c
+++ b/lib.c
@@ -4795,10 +4795,10 @@ static void cat_str_measure(struct cat_str *cs, val item, int more_p, val self)
return;
}
- uw_throwf(error_s, lit("cat-str: ~s is not a character or string"),
+ uw_throwf(error_s, lit("~a: ~s is not a character or string"), self,
item, nao);
oflow:
- uw_throwf(error_s, lit("cat-str: string length overflow"), nao);
+ uw_throwf(error_s, lit("~a: string length overflow"), self, nao);
}
static void cat_str_alloc(struct cat_str *cs)