From 3f9a4bbcaa7c3c78b2c709373172503a67084611 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 25 Jun 2018 22:45:44 +0200 Subject: main: replace naked panic with log.Panic Fix the check that failed to find the case as well. --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4989370..24f16bd 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "log" "os" "path/filepath" "runtime" @@ -89,7 +90,7 @@ func changePassword(args *argContainer) { exitcodes.Exit(err) } if len(masterkey) == 0 { - panic("empty masterkey") + log.Panic("empty masterkey") } tlog.Info.Println("Please enter your new password.") newPw := readpassword.Twice(args.extpass) -- cgit v1.2.3