refactor: improve accelerator check failed message (#36476)
This commit is contained in:
parent
e3b7c3024f
commit
f527b8aa2a
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue