Skip to content

Commit b1d5a47

Browse files
author
Joe Petviashvili
committed
better error message
1 parent 3b99283 commit b1d5a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scope.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ global const scopes = Vector{Vector{AFArray}}()
1111
matches(arr, except::Union{Void,Number,Array{<:Number}}) = false
1212
matches(arr, except::AFArray) = arr === except
1313
matches(arr, except::Tuple) = any(ex -> matches(arr, ex), except)
14-
matches{T}(arr, except::T) = error("@afgc return value can be Void, Number, Array, or Tuple but found $T")
14+
matches{T}(arr, except::T) = error("@afgc return value can be Void, Number, Array{<:Number}, or Tuple but found $T")
1515

1616
function push_to_scope(arr)
1717
if !isempty(scopes)

0 commit comments

Comments
 (0)