Skip to content

Commit aa395e1

Browse files
convert-doc: don't use doc if there was an error (sajari#117)
Avoids panics.
1 parent 42bcff6 commit aa395e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc.go

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func ConvertDoc(r io.Reader) (string, map[string]string, error) {
3636
doc, err := mscfb.New(f)
3737
if err != nil {
3838
log.Printf("ConvertDoc: could not read doc: %v", err)
39+
return
3940
}
4041

4142
props := msoleps.New()

0 commit comments

Comments
 (0)