Skip to content

Limit the length of the invalid rule indices message#1980

Merged
ChrisLovering merged 2 commits into
mainfrom
bsoyka/rules-bug
Nov 27, 2021
Merged

Limit the length of the invalid rule indices message#1980
ChrisLovering merged 2 commits into
mainfrom
bsoyka/rules-bug

Conversation

@bsoyka
Copy link
Copy Markdown
Contributor

@bsoyka bsoyka commented Nov 27, 2021

This closes #1975, which shows that extremely long invalid rule indices errors, as shown below, throw an error if the message is long enough.

image

This PR limits the length of the invalid indices string to 50 characters to avoid errors like the one shown in Sentry.

image

@bsoyka bsoyka added t: bug Something isn't working a: frontend Related to output and formatting labels Nov 27, 2021
... is used everywhere else across the codebase where 	extwrap.shorten is used, so I'm making it match here.
@bsoyka
Copy link
Copy Markdown
Contributor Author

bsoyka commented Nov 27, 2021

Changed the placeholder since it's ... everywhere else across the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: frontend Related to output and formatting t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Too long rule number causes an Invalid Form Body error

3 participants