Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/debug.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ expression. Two common reasons for this issue are:

function __init__()
Base.Experimental.register_error_hint(DomainError) do io, e
if e isa DomainError &&
occursin(
"will only return a complex result if called with a complex argument. Try ",
e.msg)
if e isa DomainError && occursin("will only return a complex result if called with a complex argument. Try ", e.msg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
if e isa DomainError && occursin("will only return a complex result if called with a complex argument. Try ", e.msg)
if e isa DomainError &&
occursin("will only return a complex result if called with a complex argument. Try ", e.msg)

println(io, DOMAINERROR_COMPLEX_MSG)
end
end
Expand Down
Loading