Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4501

Use config_parse_error to propagate remap.config errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: sometime
    • Component/s: Configuration, Remap API
    • Labels:
      None

      Description

      In RemapConfig.cc there is a fairly complex game of formatting error messages into output buffers. We can simplify all this by using the config_parse_error class to carry both a status and an error message.

      We should add a SourceLocation field to config_parse_error as well to we can propagate the line that the error occurred on.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jamespeach James Peach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: