-
Notifications
You must be signed in to change notification settings - Fork 392
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
Fix Schedule Limits Error Message #9278
Conversation
The reason for the failure is due to a mismatch in the number of arguments (
This seems to bring up a larger issue - we have no way of catching when we have not correctly aligned the |
Ready for review. I've got a draft script for doing some validation on these format strings, and I've found a few other issues. The script isn't ready for prime time just yet but I'll have it polished up and the issues fixed before the release date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to take this. I know your script will be a big help with the robustness of the format strings, but it doesn't have to be attached to this PR.
@@ -639,7 +639,7 @@ namespace ScheduleManager { | |||
ShowContinueError(state, " Other warning/severes about schedule values may appear."); | |||
} else { | |||
ShowSevereError(state, | |||
format("{}=\"{}\", {} [{:.0R}] > {} [{:.0R}].", | |||
format("{}{}=\"{}\", {} [{:.0R}] > {} [{:.0R}].", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearly the correct fix to get the right number of placeholders as arguments.
Thanks @mitchute , merging this one. |
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.