diff options
author | joe <joe@jerkface.net> | 2016-08-30 05:46:08 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2016-08-30 05:46:08 -0400 |
commit | 8423f5d8382eff36e901937ba6849de325088f5f (patch) | |
tree | 7abaa8ae55a47f551907d29d8cb619b22bf5d286 | |
parent | 78e4b9e9281560d0949af913ea01460eb9295af9 (diff) |
More error reporting.
-rw-r--r-- | lib/Kiki.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Kiki.hs b/lib/Kiki.hs index 468394f..87b6ea5 100644 --- a/lib/Kiki.hs +++ b/lib/Kiki.hs | |||
@@ -418,6 +418,13 @@ refreshCache rt rootdir = do | |||
418 | }) | 418 | }) |
419 | KikiResult rt' report <- runKeyRing exportOp | 419 | KikiResult rt' report <- runKeyRing exportOp |
420 | 420 | ||
421 | outputReport report | ||
422 | -- outputReport $ map (first $ resolveForReport ctx) $ filter ((/=ExportedSubkey) . snd) report | ||
423 | rt <- case rt' of | ||
424 | BadPassphrase -> | ||
425 | error "Operation requires correct passphrase. (Hint: Use --passphrase-fd=0 to input it on stdin.)" | ||
426 | _ -> unconditionally $ return rt' | ||
427 | |||
421 | {- | 428 | {- |
422 | let writeSecret tag path warning = do | 429 | let writeSecret tag path warning = do |
423 | let my_ks :: [Packet] | 430 | let my_ks :: [Packet] |