mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
* Added console panel for evaluating scripts and showing error messages.
* Rewrite of error queue code: errors are now pulled, instead of being turned into messageboxes automatically. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1629 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -215,7 +215,7 @@ void Keyword::prepare(const vector<KeywordParamP>& param_types, bool force) {
|
||||
// throwing an error can mean a set will not be loaded!
|
||||
// instead, simply disable the keyword
|
||||
//throw InternalError(_("Unknown keyword parameter type: ") + type);
|
||||
handle_error(_("Unknown keyword parameter type: ") + type, true, false);
|
||||
handle_error(_("Unknown keyword parameter type: ") + type);
|
||||
valid = false;
|
||||
return;
|
||||
}
|
||||
@@ -700,7 +700,7 @@ bool KeywordDatabase::tryExpand(const Keyword& kw,
|
||||
try {
|
||||
reminder = kw.reminder.invoke(ctx)->toString();
|
||||
} catch (const Error& e) {
|
||||
handle_error(_ERROR_2_("in keyword reminder", e.what(), kw.keyword), true, false);
|
||||
handle_error(_ERROR_2_("in keyword reminder", e.what(), kw.keyword));
|
||||
}
|
||||
ctx.setVariable(_("keyword"), to_script(total));
|
||||
ctx.setVariable(_("reminder"), to_script(reminder));
|
||||
|
||||
Reference in New Issue
Block a user