Merge "Print the text error instead of number"

This commit is contained in:
TreeHugger Robot
2022-11-24 19:05:54 +00:00
committed by Android (Google) Code Review

View File

@@ -167,8 +167,8 @@ static bool validateFile(const char* filename) {
android::base::Result<std::unique_ptr<PropertyMap>> propertyMap =
PropertyMap::load(String8(filename));
if (!propertyMap.ok()) {
error("Error %d parsing input device configuration file.\n\n",
propertyMap.error().code());
error("Error parsing input device configuration file: %s.\n\n",
propertyMap.error().message().c_str());
return false;
}
break;