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

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

      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
      

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: