Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13655

Catching errors with #try generates an error when it shouldn't

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Example:

      {{velocity}}
      #try()
      $services.query.xwql("zzzzz").execute()
      #end
      {{/velocity}}
      

      Will generate an error macro with the text "Unexpected error. Contact your administrator or report the issue. Click this box to get technical details."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: