Skip to content

Commit

Permalink
#5632: Catch exceptions thrown by actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed May 29, 2021
1 parent a8bee01 commit ffb6f87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libs/scene/merge/MergeOperation.cpp
Expand Up @@ -90,7 +90,14 @@ void MergeOperation::applyActions()
{
for (auto& action : _actions)
{
action->applyChanges();
try
{
action->applyChanges();
}
catch (const std::runtime_error& ex)
{
rError() << "Failed to apply action: " << ex.what() << std::endl;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions radiant/ui/merge/MergeControlDialog.h
@@ -1,6 +1,7 @@
#pragma once

#include "iselection.h"
#include "icommandsystem.h"
#include <sigc++/connection.h>
#include "wxutil/window/TransientWindow.h"
#include "wxutil/XmlResourceBasedWidget.h"
Expand Down

0 comments on commit ffb6f87

Please sign in to comment.