Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3265

Should YAML parser stop parsing on error?

    XMLWordPrintable

    Details

    • Type: Knowledge acquisition
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libutils
    • Labels:
      None

      Description

      Our YAML parser function outputs ProgrammingError when errors are encountered, but continues parsing. It also returns void which means that we can't validate YAML files with our current parser.

      Should we stop parsing when errors are encountered? This will likely break several setups.
      We could also add some return value that we use to check if some error was encountered.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            karlhto Karl Hole Totland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: