{"record":{"id":"88b17f939b9c7f1e","repo":"puppetlabs/puppet","slug":"failed-to-parse-inline-template-detail","errorCode":null,"errorMessage":"Failed to parse inline template: %{detail}","messagePattern":"Failed to parse inline template: %(.+?)","errorType":"exception","errorClass":"Puppet::ParseError","httpStatus":null,"severity":"error","filePath":"lib/puppet/parser/functions/inline_template.rb","lineNumber":25,"sourceCode":"  output is all concatenated and returned as the output of the function.\") do |vals|\n  if Puppet[:tasks]\n    raise Puppet::ParseErrorWithIssue.from_issue_and_stack(\n      Puppet::Pops::Issues::FEATURE_NOT_SUPPORTED_WHEN_SCRIPTING,\n      { :feature => 'ERB inline_template' }\n    )\n  end\n\n  require 'erb'\n\n  vals.collect do |string|\n    # Use a wrapper, so the template can't get access to the full\n    # Scope object.\n\n    wrapper = Puppet::Parser::TemplateWrapper.new(self)\n    begin\n      wrapper.result(string)\n    rescue => detail\n      raise Puppet::ParseError, _(\"Failed to parse inline template: %{detail}\") % { detail: detail }, detail.backtrace\n    end\n  end.join(\"\")\nend\n","sourceCodeStart":7,"sourceCodeEnd":29,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/parser/functions/inline_template.rb#L7-L29","documentation":"Error \"Failed to parse inline template: %{detail}\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/parser/functions/inline_template.rb:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}