|
|
|
|
@ -936,7 +936,15 @@ function execute_block(sb::Module, block::String; inputfile::String, fake_source
@@ -936,7 +936,15 @@ function execute_block(sb::Module, block::String; inputfile::String, fake_source
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
popdisplay(disp) # IOCapture.capture has a try-catch so should always end up here |
|
|
|
|
if c.error && !continue_on_error |
|
|
|
|
if c.error |
|
|
|
|
if continue_on_error |
|
|
|
|
err = c.value |
|
|
|
|
if err isa LoadError # include_string may wrap error in LoadError |
|
|
|
|
err = err.error |
|
|
|
|
end |
|
|
|
|
error_output = "ERROR: " * sprint(showerror, err) |
|
|
|
|
return nothing, error_output, disp.data |
|
|
|
|
else |
|
|
|
|
error(""" |
|
|
|
|
$(sprint(showerror, c.value)) |
|
|
|
|
when executing the following code block from inputfile `$(Base.contractuser(inputfile))` |
|
|
|
|
@ -946,6 +954,7 @@ function execute_block(sb::Module, block::String; inputfile::String, fake_source
@@ -946,6 +954,7 @@ function execute_block(sb::Module, block::String; inputfile::String, fake_source
|
|
|
|
|
``` |
|
|
|
|
""") |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
return c.value, c.output, disp.data |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|