From d08eb028e18c57b78c91fcaa4468a9119c9dfbe1 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 7 Sep 2017 14:27:49 +0100 Subject: [PATCH] main: Fix comments. Add a new comment and move an existing one to the correct location. Signed-off-by: James O. D. Hunt --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index fd49b2ac..ff0df7c2 100644 --- a/main.go +++ b/main.go @@ -27,8 +27,8 @@ import ( "github.com/urfave/cli" ) -// name holds the name of this program const ( + // name holds the name of this program name = "cc-runtime" project = "IntelĀ® Clear Containers" ) @@ -225,6 +225,7 @@ type fatalWriter struct { } func (f *fatalWriter) Write(p []byte) (n int, err error) { + // Ensure error is logged before displaying to the user ccLog.Error(string(p)) return f.cliErrWriter.Write(p) }