mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: improve accelerator check failed message (#36476)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user