diff --git a/src/libcamera/yaml_parser.cpp b/src/libcamera/yaml_parser.cpp
index c96e99e1317c..dfbfac304d3d 100644
--- a/src/libcamera/yaml_parser.cpp
+++ b/src/libcamera/yaml_parser.cpp
@@ -807,7 +807,7 @@ std::unique_ptr<YamlObject> YamlParser::parse(File &file)
 	std::unique_ptr<YamlObject> root(new YamlObject());
 
 	if (context.parseContent(*root)) {
-		LOG(YamlParser, Error) << "Failed to parse YAML content";
+		LOG(YamlParser, Error) << "Failed to parse YAML content from " << file.fileName();
 		return nullptr;
 	}
 
