From 842f2cc8a06627a1de4fbdd1580fefe14be85a04 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 22 Aug 2014 12:14:37 +0200 Subject: [PATCH] Error window --- ethereal/main.go | 1 + ethereum/main.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ethereal/main.go b/ethereal/main.go index 7b157f3db..dd4f1245a 100644 --- a/ethereal/main.go +++ b/ethereal/main.go @@ -31,6 +31,7 @@ func run() error { err := utils.DBSanityCheck(db) if err != nil { ErrorWindow(err) + os.Exit(1) } diff --git a/ethereum/main.go b/ethereum/main.go index 937a2b399..9d07ab0d4 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -40,6 +40,11 @@ func main() { utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile) db := utils.NewDatabase() + err := utils.DBSanityCheck(db) + if err != nil { + logger.Errorln(err) + os.Exit(1) + } keyManager := utils.NewKeyManager(KeyStore, Datadir, db)