Commit 3f064979 authored by whyrusleeping's avatar whyrusleeping
Browse files

dont fail copy on not found error

parent 9656ce47
...@@ -724,6 +724,10 @@ func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error { ...@@ -724,6 +724,10 @@ func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error {
val, err := osb.ds.Get(lastSectorIdKey) val, err := osb.ds.Get(lastSectorIdKey)
if err != nil { if err != nil {
if err == datastore.ErrNotFound {
log.Warnf("CAUTION: last sector ID not found in previous datastore")
return nil
}
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment