forked from cerc-io/plugeth
Error window
This commit is contained in:
parent
77fd361c62
commit
842f2cc8a0
@ -31,6 +31,7 @@ func run() error {
|
|||||||
err := utils.DBSanityCheck(db)
|
err := utils.DBSanityCheck(db)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ErrorWindow(err)
|
ErrorWindow(err)
|
||||||
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,11 @@ func main() {
|
|||||||
utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile)
|
utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile)
|
||||||
|
|
||||||
db := utils.NewDatabase()
|
db := utils.NewDatabase()
|
||||||
|
err := utils.DBSanityCheck(db)
|
||||||
|
if err != nil {
|
||||||
|
logger.Errorln(err)
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
keyManager := utils.NewKeyManager(KeyStore, Datadir, db)
|
keyManager := utils.NewKeyManager(KeyStore, Datadir, db)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user