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

Functions written in Puppet language errors don't mention the file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.3.1
    • Fix Version/s: PUP 4.3.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2015-12-30, Language 2016-01-13
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Errors in puppet functions didn't mention the file. Now they do.

      Description

      With Puppet 4 you've done a fantastic job of improving the error messages to indicate the specific file, and the underlying problem. Bravo!

      Could you add a bit of love to the functions written in the Puppet language? They don't mention which function name, which file name, nothing. All I know is that some Puppet function has an error in it:

      Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at ')' at line 26:38 on node client.example.com
      

      The same problem appears when calling log functions and fail() in particular.

      Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Cannot convert 'True' to a boolean value. at line 13:18 on node client.example.com
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jorhett Jo Rhett
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support