Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(888)

Unified Diff: tools/gn/ninja_toolchain_writer.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/gn/ninja_toolchain_writer.cc
diff --git a/tools/gn/ninja_toolchain_writer.cc b/tools/gn/ninja_toolchain_writer.cc
index a48a8b9f84679448814b0d06e8c65b3855fe7c08..2b56bc3c6a3e41944e16a474da3860a109ed3461 100644
--- a/tools/gn/ninja_toolchain_writer.cc
+++ b/tools/gn/ninja_toolchain_writer.cc
@@ -87,7 +87,8 @@ void NinjaToolchainWriter::WriteToolRule(const Toolchain::ToolType type,
EscapeOptions options;
options.mode = ESCAPE_NINJA_PREFORMATTED_COMMAND;
- CHECK(!tool->command().empty()) << "Command should not be empty";
+ // Command should not be empty
+ CHECK(!tool->command().empty());
WriteRulePattern("command", tool->command(), options);
WriteRulePattern("description", tool->description(), options);

Powered by Google App Engine
This is Rietveld 408576698