Skip to content

Commit 9243875

Browse files
committed
Rip out AbstractDiagnostic code for now
To be put back when we actually have something to do with these. Part of #2
1 parent 72001bb commit 9243875

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/DebuggerFramework.jl

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module DebuggerFramework
198198
print(io, String(take!(outbuf)))
199199
end
200200

201-
struct AbstractDiagnostic; end
201+
abstract type AbstractDiagnostic; end
202202

203203
function execute_command
204204
end
@@ -258,21 +258,7 @@ module DebuggerFramework
258258
do_print_status = try
259259
execute_command(state, state.stack[state.level], Val{Symbol(cmd1)}(), command)
260260
catch err
261-
isa(err, AbstractDiagnostic) || rethrow(err)
262-
caught = false
263-
for interp_idx in length(state.top_interp.stack):-1:1
264-
if process_exception!(state.top_interp.stack[interp_idx], err, interp_idx == length(top_interp.stack))
265-
interp = state.top_interp = state.top_interp.stack[interp_idx]
266-
resize!(state.top_interp.stack, interp_idx)
267-
caught = true
268-
break
269-
end
270-
end
271-
!caught && rethrow(err)
272-
display_diagnostic(STDERR, state.interp.code, err)
273-
println(STDERR)
274-
LineEdit.reset_state(s)
275-
return true
261+
rethrow(err)
276262
end
277263
if old_level != state.level
278264
panel.prompt = promptname(state.level,"debug")

0 commit comments

Comments
 (0)