Skip to content

Commit

Permalink
refactor: improve accelerator check failed message (#36476)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Nov 30, 2022
1 parent e3b7c30 commit f527b8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell/browser/ui/accelerator_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f527b8a

Please sign in to comment.