mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Slightly more information on script errors in keyword reminder text
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@930 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -335,7 +335,11 @@ SCRIPT_RULE_2_N_DEP(expand_keywords, ScriptValueP, _("default expand"), default_
|
||||
}
|
||||
SCRIPT_OPTIONAL_PARAM_C_(CardP, card);
|
||||
WITH_DYNAMIC_ARG(keyword_usage_statistics, card ? &card->keyword_usage : nullptr);
|
||||
SCRIPT_RETURN(db.expand(input, default_expand, combine, ctx));
|
||||
try {
|
||||
SCRIPT_RETURN(db.expand(input, default_expand, combine, ctx));
|
||||
} catch (const Error& e) {
|
||||
throw ScriptError(_ERROR_2_("in function", e.what(), _("expand_keywords")));
|
||||
}
|
||||
}
|
||||
SCRIPT_RULE_2_DEPENDENCIES(expand_keywords) {
|
||||
default_expand->dependencies(ctx, dep);
|
||||
|
||||
Reference in New Issue
Block a user