mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Shell: Unwind execution after runtime errors
This commit makes the Shell check for errors after a node is run(), and prevents further execution by unwinding until the error is cleared. Fixes #10649.
This commit is contained in:
parent
8f332ac6a3
commit
d020d46846
2 changed files with 104 additions and 1 deletions
|
@ -244,6 +244,7 @@ public:
|
|||
m_source_position.value().position = position.release_value();
|
||||
}
|
||||
bool has_error(ShellError err) const { return m_error == err; }
|
||||
bool has_any_error() const { return !has_error(ShellError::None); }
|
||||
const String& error_description() const { return m_error_description; }
|
||||
ShellError take_error()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue