Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None

      Description

      This patch logs to error the exceptions that occur within a macro. This essentially creates a stack trace in the error log of the macro stack levels that contain the exception. For example: (This is with strict reference settings, but the same would be true without strict referencing and an exception was thrown from within the reference call)

      #macro(foo1 $f)
      $f
      #end
      #macro(foo2 $e)
      #foo1($e)
      #end
      #foo2($x.abc)

      Would create a log ouput like so:

      ERROR (velocity) Variable $x has not been set at /foo.vm[line 7, column 7]
      ERROR (velocity) Exception calling reference $f at /foo.vm[line 2, column 3]
      ERROR (velocity) Exception in macro #foo1 at /foo.vm[line 5, column 3]
      ERROR (velocity) Exception in macro #foo2 at /foo.vm[line 7, column 1]

      Without this it is very difficult to find where an error occurred within nested macros.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        18h 46m 1 Nathan Bubna 13/Oct/08 17:30
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551582 ] jira [ 12552467 ]
        Mark Thomas made changes -
        Workflow jira [ 12443973 ] Default workflow, editable Closed status [ 12551582 ]
        Nathan Bubna made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.6 [ 12310290 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Byron Foster made changes -
        Component/s Engine [ 12311337 ]
        Affects Version/s 1.6 [ 12310290 ]
        Byron Foster made changes -
        Field Original Value New Value
        Attachment errorLogStackTrace.patch [ 12391973 ]
        Byron Foster created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Byron Foster
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development