diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-02-12 20:01:03 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-02-12 20:01:03 -0800 |
commit | 289c8aec7ecdf837ae5ba01987ec3f34e3307b78 (patch) | |
tree | 7ea650cd9acd360014f626288377a61fa49a74e2 /lib.c | |
parent | 7ed3b0ad7626612aa4b0420dd3dcfdbf5b168fb8 (diff) | |
download | txr-289c8aec7ecdf837ae5ba01987ec3f34e3307b78.tar.gz txr-289c8aec7ecdf837ae5ba01987ec3f34e3307b78.tar.bz2 txr-289c8aec7ecdf837ae5ba01987ec3f34e3307b78.zip |
* lib.c (list_collect, list_collect_append): In error
messages about bad appends, do not show the list being
appended because it may be an infinite lazy list.
For instance (append* 3 lazy-list).
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -611,7 +611,7 @@ loc list_collect(loc ptail, val obj) replace_str(deref(ptail), cons(obj, nil), t, t); return ptail; default: - uw_throwf(error_s, lit("cannot append ~s to ~s"), obj, deref(ptail), nao); + uw_throwf(error_s, lit("cannot append ~s"), deref(ptail), nao); } } @@ -666,7 +666,7 @@ loc list_collect_append(loc ptail, val obj) replace_str(deref(ptail), obj, t, t); return ptail; default: - uw_throwf(error_s, lit("cannot append ~s to ~s"), obj, deref(ptail), nao); + uw_throwf(error_s, lit("cannot append to ~s"), deref(ptail), nao); } } |