Skip to content

Commit

Permalink
make error method error
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Apr 30, 2024
1 parent a97a422 commit 934e590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CoreComputing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function reduce(output::T, output_threaded::Vector{T}) where {T<:AbstractArray}
end
function reduce(output, output_threaded)
T = typeof(output)
error("""
MethodError: no method matching reduce(::$(typeof(output)),::$(typeof(output_threaded)))
throw(ArgumentError("""\n
No method matching reduce(::$(typeof(output)),::$(typeof(output_threaded)))
Please provide a method that appropriately reduces a `Vector{$T}`, with
the signature:
Expand All @@ -65,7 +65,7 @@ function reduce(output, output_threaded)
See: https://m3g.github.io/CellListMap.jl/stable/parallelization/#Custom-reduction-functions
""")
"""))
end

"""
Expand Down

0 comments on commit 934e590

Please sign in to comment.