From 09e88f31d1b4308bf82c7f4eb0dd83855ad67ffc Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 15 Jun 2016 23:17:51 +0200 Subject: toggledlog: assume command of color handling We want to use colored error messages also outside of main, so let's handle it in the logging package. The fatal logger now automatically prints red. --- masterkey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'masterkey.go') diff --git a/masterkey.go b/masterkey.go index 5216f72..55da1ea 100644 --- a/masterkey.go +++ b/masterkey.go @@ -35,7 +35,7 @@ If the gocryptfs.conf file becomes corrupted or you ever forget your password, there is only one hope for recovery: The master key. Print it to a piece of paper and store it in a drawer. -`, colorGrey+hChunked+colorReset) +`, toggledlog.ColorGrey+hChunked+toggledlog.ColorReset) } // parseMasterKey - Parse a hex-encoded master key that was passed on the command line -- cgit v1.2.3