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

Improved error message #75350

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Improved error message #75350

merged 2 commits into from
Aug 1, 2024

Conversation

PatrikLundell
Copy link
Contributor

Summary

None

Purpose of change

Improve an error message.

Describe the solution

Print the bubble coordinates of the location whose submap couldn't be found, together with the map size of the map, and the previously printed submap map square coordinates of the particular locaction within the missing submap.

Also swapped the main implementation from the untyped to the typed version of the operation while at it.

Describe alternatives you've considered

Testing

Compilation. Testing an error message that shouldn't show up is hard...

Additional context

This is prompted by the error message being printed by a failed test for a PR that didn't involve map generation and the realization that the error message didn't provide any useful info at all. The updated info would at least provide the info to tell you if the submap is out of bounds, at the edges of the map, etc. that might at least be marginally useful.

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Jul 31, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Aug 1, 2024
@Maleclypse Maleclypse merged commit 348ab84 into CleverRaven:master Aug 1, 2024
26 checks passed
@PatrikLundell PatrikLundell deleted the ter branch August 1, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants