Merge pull request #395 from ipfs/fix/upgrade-empty-state
Fix: do not fail when running daemon --upgrade and no state exists
This commit is contained in:
commit
695177a080
|
@ -451,7 +451,9 @@ func daemon(c *cli.Context) error {
|
|||
// Run any migrations
|
||||
if c.Bool("upgrade") {
|
||||
err := upgrade()
|
||||
checkErr("upgrading state", err)
|
||||
if err != errNoSnapshot {
|
||||
checkErr("upgrading state", err)
|
||||
} // otherwise continue
|
||||
}
|
||||
|
||||
// Execution lock
|
||||
|
|
Loading…
Reference in New Issue
Block a user