From 3403cd68a8c6618ef047251363b2da9b685d84ab Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Fri, 18 Apr 2025 15:03:26 -0400 Subject: [PATCH] show keyfile gen errors instead of crashing --- src/Picocrypt.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index c1ab376..a4caeef 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -595,6 +595,9 @@ func draw() { fout, err := os.Create(file) if err != nil { + mainStatus = "Failed to create keyfile" + mainStatusColor = RED + giu.Update() return } data := make([]byte, 32) @@ -611,6 +614,8 @@ func draw() { } else { mainStatus = "Ready" mainStatusColor = WHITE + giu.Update() + return } }), giu.Tooltip("Generate a cryptographically secure keyfile"),