summaryrefslogtreecommitdiff
path: root/tools/validatekeymaps/Main.cpp
diff options
context:
space:
mode:
author Xin Li <delphij@google.com> 2023-10-06 05:34:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-10-06 05:34:14 +0000
commit031de969c6f94d746ec3a01585956e46e4ff3e25 (patch)
tree5f1aeed9d54f1fde2fff6293afa3e1e3bc8e928f /tools/validatekeymaps/Main.cpp
parent2bcc7900baa130b696d8e35f596b051e660f1629 (diff)
parentae461709c00ea5ca52d23fd4f0409231e338ec33 (diff)
Merge "Merge Android 14" into main
Diffstat (limited to 'tools/validatekeymaps/Main.cpp')
-rw-r--r--tools/validatekeymaps/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/validatekeymaps/Main.cpp b/tools/validatekeymaps/Main.cpp
index 6cae3ecc6e44..70d875e394ff 100644
--- a/tools/validatekeymaps/Main.cpp
+++ b/tools/validatekeymaps/Main.cpp
@@ -167,8 +167,8 @@ static bool validateFile(const char* filename) {
android::base::Result<std::unique_ptr<PropertyMap>> propertyMap =
PropertyMap::load(String8(filename).c_str());
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;