diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-03-12 06:22:59 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-03-12 06:22:59 -0800 |
commit | d39d327262f76f1c2de46fe7b09d6492a4c0941b (patch) | |
tree | d70c2f8987856b4e240ad9c7ea31840677744c2e | |
parent | 05df1eea56e609ff574f76e87d07c8d8fa9d3321 (diff) | |
download | txr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |