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

Unified Diff: mojom/mojom_parser/check_version.go

Issue 1833493002: Replace ErrorExit with log.Fatal in the mojom tool. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months 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: mojom/mojom_parser/check_version.go
diff --git a/mojom/mojom_parser/check_version.go b/mojom/mojom_parser/check_version.go
index 69be835058afacbee90641655ef022febd0d5994..476f3f2b921c2c074736e3923089a200a2d31953 100644
--- a/mojom/mojom_parser/check_version.go
+++ b/mojom/mojom_parser/check_version.go
@@ -24,8 +24,6 @@ import (
// the comparison fails, an error message is logged and the program terminates
// with return code 1.
func checkVersion(args []string) {
- // TODO(azani): Move log.SetFlags to mojom_main.go when replacing ErrorExit with log.Fatalln.
- log.SetFlags(0)
mojomToolPath := args[0]
mojomDir := filepath.Dir(mojomToolPath)
sha1FilePath := filepath.Join(mojomDir, "mojom.sha1")

Powered by Google App Engine
This is Rietveld 408576698