Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1873

JavaScript execution exception is not logged

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3
    • 5.3.4, 5.4
    • tapestry-core
    • None

    Description

      If there is an error durring the ajax javascript execution, exception is not logged, that is a critical issue when you are developing and tracking errors.

      Tapestry.js ajaxRequest @453:

      finalOptions.get('onException').call(this, response);

      Should be:

      finalOptions.get('onException').call(this, response, e);

      Exception's stacktrace should be also logged otherwise there is no way to tell were did it came from.

      Tapestry.js ajaxExceptionHandler @371:

      Tapestry.debug(Tapestry.Messages.ajaxFailure + exception, response);
      if(exception.stack)

      { Tapestry.debug(exception.stack); }

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            denis.stepanov Denis Stepanov
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: