Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XWiki
xwiki-rendering
Commits
8cb28415
Commit
8cb28415
authored
Dec 06, 2021
by
Thomas Mortagne
Browse files
XRENDERING-621: Make rendering errors translatables and extendables
* fix mistake
parent
8a6e913d
Changes
1
Hide whitespace changes
Inline
Side-by-side
xwiki-rendering-api/src/main/java/org/xwiki/rendering/internal/util/DefaultErrorBlockGenerator.java
View file @
8cb28415
...
...
@@ -109,8 +109,7 @@ protected List<Block> generateErrorBlocks(boolean inline, LogEvent message, LogE
errorBlocks
.
add
(
new
FormatBlock
(
descriptionChildren
,
Format
.
NONE
,
errorDescriptionBlockParams
));
}
}
else
{
errorBlocks
.
add
(
new
GroupBlock
(
Arrays
.
asList
(
new
WordBlock
(
message
.
getFormattedMessage
())),
errorBlockParams
));
errorBlocks
.
add
(
new
GroupBlock
(
Arrays
.
asList
(
new
WordBlock
(
messageBuilder
.
toString
())),
errorBlockParams
));
if
(!
descriptionChildren
.
isEmpty
())
{
errorBlocks
.
add
(
new
GroupBlock
(
descriptionChildren
,
errorDescriptionBlockParams
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment