Error window

This commit is contained in:
obscuren 2014-08-22 12:14:37 +02:00
parent 77fd361c62
commit 842f2cc8a0
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func run() error {
err := utils.DBSanityCheck(db)
if err != nil {
ErrorWindow(err)
os.Exit(1)
}

View File

@ -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)