Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-4

Session.error() discarding important debug info

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 0.9.8
    • Fix Version/s: 1.0.1
    • Labels:
      None

      Description

      If the ErrorCode is D9_TEMPLATE_NOT_REGISTERED then the original message is discarded. Important information like the template id is lost. This makes finding the original problem much harder. I don't understand why the original message is being replaced, but perhaps the original message could be appended to the new one?

      public void error(ErrorCode code, String message) {
      if (code.equals(FastConstants.D9_TEMPLATE_NOT_REGISTERED))

      { code = SessionConstants.TEMPLATE_NOT_SUPPORTED; message = "Template Not Supported"; }

      protocol.onError(this, code, message);
      errorHandler.error(code, message);
      }

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              chelck@ebs.com Christopher Helck
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: