summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-05-25 06:25:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-05-25 06:25:48 -0700
commitcbb66a07785750dd1884143eefbacd78ae048d0b (patch)
treedc16e127f2d375bedefb479d1af4eef017dfd113
parentfba4825b17de8d7d99d4a56d9588a7839a871202 (diff)
downloadtxr-cbb66a07785750dd1884143eefbacd78ae048d0b.tar.gz
txr-cbb66a07785750dd1884143eefbacd78ae048d0b.tar.bz2
txr-cbb66a07785750dd1884143eefbacd78ae048d0b.zip
search/rsearch: wrong object in bad key diagnostic.
* lib.c (search_list, rsearch_list): When the key has a bad type, don't report the seq object in its place.
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 65bee46b..7f0d04da 100644
--- a/lib.c
+++ b/lib.c
@@ -10820,7 +10820,7 @@ static val search_list(val seq, val key, val testfun, val keyfun)
}
break;
default:
- type_mismatch(lit("search: ~s is not a sequence"), seq, nao);
+ type_mismatch(lit("search: ~s is not a sequence"), key, nao);
}
return nil;
@@ -10894,7 +10894,7 @@ static val rsearch_list(val seq, val key, val testfun, val keyfun)
}
break;
default:
- type_mismatch(lit("rsearch: ~s is not a sequence"), seq, nao);
+ type_mismatch(lit("rsearch: ~s is not a sequence"), key, nao);
}
return found;