Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more useful warnings and errors #715

Merged
merged 2 commits into from
Dec 2, 2023
Merged

Conversation

wxwisiasdf
Copy link
Contributor

No description provided.

@@ -2973,7 +2977,7 @@ struct effect_body {
else if(context.from_slot == trigger::slot_contents::province)
context.compiled_effect.push_back(effect::remove_casus_belli_from_province);
else {
err.accumulated_errors += "remove_casus_belli = from effect used in an incorrect scope type (" + err.file_name +
err.accumulated_errors += "remove_casus_belli = from effect used in an incorrect scope type " + slot_contents_to_string(context.main_slot) + " (" + err.file_name +
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, I will merge this pr, because it probably won't hurt anything, but note that some of these errors, such as this one in particular, can come from mismatches in scopes other than the main one, in which case displaying the main one, which may very well make sense, is probably going to be even more confusing

@schombert schombert merged commit a10d725 into schombert:main Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants