We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd75344 + f9a3f11 commit 28d2611Copy full SHA for 28d2611
1 file changed
src/source_iterable.jl
@@ -3,7 +3,9 @@ struct EnumerableIterable{T,S} <: Enumerable
3
end
4
5
function query(source)
6
- IteratorInterfaceExtensions.isiterable(source) || error()
+ if !IteratorInterfaceExtensions.isiterable(source)
7
+ error("$(typeof(source)) does not meet the IteratorInterfaceExtensions.jl API")
8
+ end
9
typed_source = IteratorInterfaceExtensions.getiterator(source)
10
T = eltype(typed_source)
11
S = typeof(typed_source)
0 commit comments