Skip to content

Commit 76e6be8

Browse files
committed
Improve error() function and add corresponding test
1 parent 2a9f33c commit 76e6be8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/error.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ using .Issue54029
160160
str = sprint(showerror, ce)
161161
@test str == "something sad has happened even earlier\n\n...and 2 more exceptions.\n"
162162
end
163+
164+
@test_throws ErrorException error()
165+
@test occursin("Generic error occurred", try error() catch e; sprint(showerror, e) end)

0 commit comments

Comments
 (0)