diff options
Diffstat (limited to 'keysafe.hs')
-rw-r--r-- | keysafe.hs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -62,8 +62,11 @@ dispatch cmdline ui storagelocations tunables possibletunables = do =<< Gpg.getKeyToBackup ui go CmdLine.Restore Nothing = restore cmdline storagelocations ui possibletunables Gpg.anyKey - go CmdLine.UploadQueued _ = - uploadQueued (CmdLine.localstoragedirectory cmdline) + go CmdLine.UploadQueued _ = do + problems <- uploadQueued (CmdLine.localstoragedirectory cmdline) + if null problems + then return () + else showError ui ("Problem uploading queued data to servers:\n\n" ++ unlines problems ++ "\n\nYour secret keys have not yet been backed up.") go (CmdLine.Server) _ = runServer (CmdLine.localstoragedirectory cmdline) |