Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-22

Show exception class name when printing out error message in console

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.1
    • None
    • None
    • None

    Description

      In case of a PathNotFoundException, for example, the current output is pretty confusing, since the message of such exception is simply the path that we tried to reach.

      mgnl> ctx.getHierarchyManager('website').getContent('/foobar')
      foobar
      

      This kind of output would probably be a little more helpful:

      mgnl> ctx.getHierarchyManager('website').getContent('/foobar')
      PathNotFoundException: foobar
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD