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

    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: