Skip to content

Commit

Permalink
fix error message for negative numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Feb 7, 2021
1 parent 740f708 commit ab7f3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/special/log.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ for (func, base) in (:log2=>Val(2), :log=>Val(:ℯ), :log10=>Val(10))
elseif isnan(x)
NaN
else
throw_complex_domainerror(:log, x)
throw_complex_domainerror(Symbol($func), x)
end
end

Expand Down Expand Up @@ -332,7 +332,7 @@ for (func, base) in (:log2=>Val(2), :log=>Val(:ℯ), :log10=>Val(10))
elseif isnan(x)
NaN32
else
throw_complex_domainerror(:log, x)
throw_complex_domainerror(Symbol($func), x)
end
end
end
Expand Down

0 comments on commit ab7f3cf

Please sign in to comment.