Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-435

Macro error message customization

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 8.0
    • Macro - Message
    • None

    Description

      When macros fail to execute XWiki always renders the stacktrace and a very technical error message like "Failed to execute the [velocity] macro. Click on this message for details.". It's not helpful for non-technical users.

      However, the error message is rendered in MacroErrorManager. Customizing the messages is difficult as it requires replacing the MacroTransformation component and other downstream components for MacroErrorManager.

      It would be great if you can rewrite MacroErrorManager as a component so that I can display a general customized error message.

      https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/transformation/macro/MacroErrorManager.java

      https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/transformation/macro/MacroTransformation.java#L169

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            whhe Wei He
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: