diff --git a/write/writer.go b/write/writer.go index 3b4ebb1a..63f10ebc 100644 --- a/write/writer.go +++ b/write/writer.go @@ -447,7 +447,7 @@ func DataSetToFile(path string, ds *element.DataSet, opts ...Option) error { if err != nil { return err } - if err := DataSet(out, ds); err != nil { + if err := DataSet(out, ds, opts...); err != nil { out.Close() return err }