Skip to content

Commit

Permalink
convert-doc: don't use doc if there was an error (sajari#117)
Browse files Browse the repository at this point in the history
Avoids panics.
  • Loading branch information
jonathaningram authored Sep 5, 2022
1 parent 42bcff6 commit aa395e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func ConvertDoc(r io.Reader) (string, map[string]string, error) {
doc, err := mscfb.New(f)
if err != nil {
log.Printf("ConvertDoc: could not read doc: %v", err)
return
}

props := msoleps.New()
Expand Down

0 comments on commit aa395e1

Please sign in to comment.