aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/readpassword/read.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/readpassword/read.go b/internal/readpassword/read.go
index c1fc3de..6945f0a 100644
--- a/internal/readpassword/read.go
+++ b/internal/readpassword/read.go
@@ -98,7 +98,11 @@ func readPasswordExtpass(extpass string) string {
}
p := readLineUnbuffered(pipe)
pipe.Close()
- cmd.Wait()
+ err = cmd.Wait()
+ if err != nil {
+ tlog.Fatal.Printf("extpass program returned an error: %v", err)
+ os.Exit(exitCode)
+ }
if len(p) == 0 {
tlog.Fatal.Println("extpass: password is empty")
os.Exit(exitCode)