Skip to content

Commit

Permalink
Update errors.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 7, 2024
1 parent 3edec40 commit 551ddd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Base.showerror(io::IO, ece::NoDerivativeException)
end
end
if occursin("cannot handle unknown binary operator", ece.msg)
for msg in ece.msg.split('\n')
for msg in split(ece.msg, '\n')
if occursin("cannot handle unknown binary operator", msg)
print('\n', msg, '\n')
end
Expand Down Expand Up @@ -111,7 +111,7 @@ function Base.showerror(io::IO, ece::EnzymeInternalError)
end
print(io, '\n', ece.msg, '\n')
else
for msg in ece.msg.split('\n')
for msg in split(ece.msg, '\n')
if occursin("Illegal replace ficticious phi for", msg)
print('\n', msg, '\n')
end
Expand Down

0 comments on commit 551ddd1

Please sign in to comment.