summaryrefslogtreecommitdiff
path: root/calcchain.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-11-13 00:40:04 +0800
committerxuri <xuri.me@gmail.com>2022-11-13 00:40:04 +0800
commitac564afa56a691e378ab9bb04cb14bb283886a16 (patch)
treedef0303fd88e78897a3c739c31c89cff8f492d43 /calcchain.go
parentbd5dd17673f767b9f4643423c77eec486f2ad53f (diff)
Remove internal error log print, throw XML deserialize error
Diffstat (limited to 'calcchain.go')
-rw-r--r--calcchain.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/calcchain.go b/calcchain.go
index 3aa5d81..5e511dc 100644
--- a/calcchain.go
+++ b/calcchain.go
@@ -54,7 +54,10 @@ func (f *File) deleteCalcChain(index int, cell string) error {
if len(calc.C) == 0 {
f.CalcChain = nil
f.Pkg.Delete(defaultXMLPathCalcChain)
- content := f.contentTypesReader()
+ content, err := f.contentTypesReader()
+ if err != nil {
+ return err
+ }
content.Lock()
defer content.Unlock()
for k, v := range content.Overrides {