Skip to content

Commit 1539599

Browse files
committed
"atom not found" is not error
1 parent f18bfaf commit 1539599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

erasepinf.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"io"
66
"log"
77
"os"
8-
"fmt"
98
)
109

1110
// atomName => padding size
@@ -61,7 +60,8 @@ func eraseAtom(atomName string, atoms map[string]*Atom, w io.WriteSeeker) error
6160
return err
6261
}
6362
if atom == nil {
64-
return fmt.Errorf("atom not found: %s", atomName)
63+
log.Printf("atom not found: %s, skipping", atomName)
64+
return nil
6565
}
6666
return atom.destroy(w)
6767
}

0 commit comments

Comments
 (0)