add error messages to bulk modification

This commit is contained in:
GenevensiS
2026-01-07 02:41:57 +01:00
parent fbf2023848
commit 21ea45c9c5
3 changed files with 82 additions and 21 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ void ScriptStyleEvent::perform(bool) {
BulkAction::BulkAction(const vector<shared_ptr<Action>>& actions, const SetP& set, CardListBase* card_list_window)
: actions(actions), set(set), card_list_window(card_list_window)
{
if (actions.empty()) throw InternalError(_("BulkAction created with no actions"));
if (actions.empty()) throw ScriptError(_("BulkAction created with no actions"));
name_do = actions.front()->getName(false) + _(" ") + _ACTION_("bulk");
name_undo = actions.front()->getName(true) + _(" ") + _ACTION_("bulk");
}