From 551ddd1ca94f1a2f7b1fe018e6415af191115ec9 Mon Sep 17 00:00:00 2001 From: William Moses Date: Sat, 7 Dec 2024 00:59:01 -0600 Subject: [PATCH] Update errors.jl --- src/errors.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/errors.jl b/src/errors.jl index 4f7b6f9480..83946f1dbd 100644 --- a/src/errors.jl +++ b/src/errors.jl @@ -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 @@ -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