From 3a81c942b421d82f3138771e7c0abd22a1292147 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 6 Dec 2017 22:17:04 -0500 Subject: [PATCH] base/arch (polybar): report gpg error status in mail module --- base/arch/config/polybar/modules/mail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/arch/config/polybar/modules/mail b/base/arch/config/polybar/modules/mail index 35810a61..7242afb3 100755 --- a/base/arch/config/polybar/modules/mail +++ b/base/arch/config/polybar/modules/mail @@ -57,7 +57,7 @@ def main(): gpg = gnupg.GPG() gpgdata = gpg.decrypt(secrets.read_bytes()) if not gpgdata.ok: - raise IOError("Couldn't decrypt secrets") + raise IOError("Couldn't decrypt secrets: {}".format(gpgdata.status)) accounts = [line.split(':') for line in gpgdata.data.decode('utf-8').strip().split('\n')] last_total = 0