Skip to content

Commit

Permalink
make #8784 work on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Nov 4, 2014
1 parent 83c2624 commit d2252d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/replutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function showerror(io::IO, e::DomainError, bt)
print(io, "\n", code[1],
" will only return a complex result if called with a complex argument.",
"\ntry ", code[1], "(complex(x))")
elseif code[1] == :^ && code[2] == symbol("intfuncs.jl")
elseif (code[1] == :^ && code[2] == symbol("intfuncs.jl")) ||
code[1] == :power_by_squaring
print(io, "\nCannot raise an integer x to a negative power -n. Make x a float by adding")
print(io, "\na zero decimal (e.g. 2.0^-n instead of 2^-n), or write 1/x^n, float(x)^-n, or (x//1)^-n")
end
Expand Down

0 comments on commit d2252d0

Please sign in to comment.