Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1902

unhelpful "syntax error at end of file" when input is a string

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: PUP 3.5.0
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      When the lexer/parser is working with a construct that encounters an end of input, the error message says "at end of file" - this is misleading when the parsing is based on a string.

      The simplest fix is to change this to "end of input" (for all cases), more work is required to make it say "end of file" or "end of string".

      This really only matters for inline epp where the user needs to be aware of if the error is at the end of the file containing the call to inline_epp, or in the string given to it.

        Attachments

          Activity

            People

            • Assignee:
              andy Andrew Parker
              Reporter:
              henrik.lindberg Henrik Lindberg
              QA Contact:
              Kurt Wall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support