diff multipass-add.go @ 10:1246b4b9028b

Add tool to remove passwords.
author Paul Fisher <paul@pfish.zone>
date Sun, 25 Oct 2015 11:47:20 -0400
parents 406d3cd76739
children
line wrap: on
line diff
--- a/multipass-add.go	Sun Oct 25 10:45:32 2015 -0400
+++ b/multipass-add.go	Sun Oct 25 11:47:20 2015 -0400
@@ -13,6 +13,10 @@
 
 func main() {
 	passfile, err := file.ForMe()
+	if err != nil {
+		fmt.Println(err.Error())
+		os.Exit(1)
+	}
 	reader := bufio.NewReader(os.Stdin)
 	fmt.Print("Describe password: ")
 	text, err := reader.ReadString('\n')