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

Message for missing title is unhelpful

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.2.1
    • Fix Version/s: PUP 4.3.0
    • Component/s: Language
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-11-11
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      insignificant change

      Description

      Overview

      If customers accidentally forget to type a resource title (or forget to capitalise the first letter of a type to set resource defaults), then the error message shown by puppet is hard to understand.

      Testcase

      file {
        owner => "root",
      }
      

      Expected message

      Missing or Invalid resource title at /root/test.pp:1:1
      

      Actual message

      Error: Could not parse for environment production: This Name has no effect. A value-producing expression without other effect may only be placed last in a block/sequence at /root/test.pp:1:1 on node geoff.puppetlabs.vm
      

      Customer impact

      Customers do not understand the current message and require assistance to fix their code

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              geoff.williams Geoff Williams
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support