From 6f85e02f1ab5988f66eb338004abb0f8c6fdc0fb Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 26 Oct 2015 07:41:45 -0700 Subject: [PATCH] ui: show an error screen when reloading fails --- doc/manual.md | 6 ++ hledger-ui/Hledger/UI/AccountsScreen.hs | 17 ++- hledger-ui/Hledger/UI/ErrorScreen.hs | 134 ++++++++++++++++++++++++ hledger-ui/Hledger/UI/RegisterScreen.hs | 17 ++- hledger-ui/Hledger/UI/UITypes.hs | 10 +- hledger-ui/hledger-ui.1.md | 8 +- hledger-ui/hledger-ui.cabal | 1 + 7 files changed, 179 insertions(+), 14 deletions(-) create mode 100644 hledger-ui/Hledger/UI/ErrorScreen.hs diff --git a/doc/manual.md b/doc/manual.md index 223c56b30..c9d24f63b 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -2263,6 +2263,12 @@ hledger-web, and other accounting systems), rather than postings if you have adjusted the report start date. Currently it always shows the running total). +##### Error screen + +This screen will appear if there is a problem, such as a parse error, +when you press g to reload. Once you have fixed the problem described, +press g again to reload and restore normal operation. + #### web