| 270 | } |
| 271 | |
| 272 | [[noreturn]] void nodeError(const YAML::Node& node, const std::string& message) |
| 273 | { |
| 274 | const auto& mark = node.Mark(); |
| 275 | std::string error |
| 276 | = std::format(" at line={} column={} position={}", mark.line + 1, mark.column + 1, mark.pos + 1); |
| 277 | throw std::runtime_error(message + error); |
| 278 | } |
| 279 | } |
| 280 | } |
no test coverage detected