Error window
This commit is contained in:
parent
77fd361c62
commit
842f2cc8a0
@ -31,6 +31,7 @@ func run() error {
|
||||
err := utils.DBSanityCheck(db)
|
||||
if err != nil {
|
||||
ErrorWindow(err)
|
||||
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user