mirror of
https://github.com/inspec/inspec
synced 2024-12-24 03:53:15 +00:00
dfce561276
Currently, if the inspec.yml for a profile is invalid (such as including an improperly-defined multi-line string), InSpec will throw an exception from the YAML parser that does not given a clear indication that the issue was encountered while parsing the inspec.yml file. This change introduces a better exception message to clue the user into where the problem actually lies. Signed-off-by: Adam Leff <adam@leff.co>
11 lines
285 B
YAML
11 lines
285 B
YAML
name: profile-with-bad-metadata
|
|
title: InSpec Profile
|
|
maintainer: The Authors
|
|
copyright: The Authors
|
|
copyright_email: you@example.com
|
|
license: All Rights Reserved
|
|
summary: An InSpec Compliance Profile
|
|
and this is
|
|
bad metadata because
|
|
we didn't start a multi-line string
|
|
version: 0.1.0
|