Block directory: Some error messages show the Try reloading the page.
string twice
#69048
Open
2 of 6 tasks
Labels
[Feature] Block Directory
Related to the Block Directory, a repository of block plugins
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When installing a block from the block directory, some error messages display the string
Try reloading the page.
twice.It appears that for errors with type
fatal
, a stringTry reloading the page.
is appended to the error message. The initial string may already contain the sentenceTry reloading the page.
though.Repetita iuvant. but sometimes it's just too much repetition.
I would say that either the 'fatal' error message should not contain the string
Try reloading the page.
or the one that gets appended should not be appendedThough these errors an edge case, the main purpose of error messages is to provide users with clear, not confusing, feedback. Showing repeated sentences doesnt help clarity and makes the UI feel unpolished.
Screenshots of some error messages:
Step-by-step reproduction instructions
Not sure how to provide instructions other than altering the code to trigger some errors.
The string concatenation in the code is pretty clear though.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: