| 74 | } |
| 75 | |
| 76 | absl::StatusOr<YAML::Node> LoadYaml(const std::string& yaml) { |
| 77 | try { |
| 78 | return YAML::Load(yaml); |
| 79 | } catch (YAML::ParserException& e) { |
| 80 | return absl::InvalidArgumentError( |
| 81 | FormatYamlErrorMessage(yaml, e.msg, e.mark)); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | absl::Status YamlError(absl::string_view yaml, const YAML::Node& node, |
| 86 | absl::string_view error) { |
nothing calls this directly
no test coverage detected