Browse Source

refactor: improve accelerator check failed message (#36476)

Black-Hole 2 years ago
parent
commit
f527b8aa2a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      shell/browser/ui/accelerator_util.cc

+ 4 - 1
shell/browser/ui/accelerator_util.cc

@@ -21,7 +21,10 @@ namespace accelerator_util {
 bool StringToAccelerator(const std::string& shortcut,
                          ui::Accelerator* accelerator) {
   if (!base::IsStringASCII(shortcut)) {
-    LOG(ERROR) << "The accelerator string can only contain ASCII characters";
+    LOG(ERROR) << "The accelerator string can only contain ASCII characters, "
+                  "invalid string: "
+               << "\"" << shortcut << "\"";
+
     return false;
   }