Skip to content

Commit fd507c5

Browse files
committed
Handle Error from nonSystemCollectionsCount in exporter.go
1 parent 83e7ed2 commit fd507c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exporter/exporter.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ func (e *Exporter) Handler() http.Handler {
290290
e.lock.Lock()
291291
e.totalCollectionsCount = count
292292
e.lock.Unlock()
293+
} else {
294+
e.logger.Errorf("Cannot count NonSystemCollections: %v", err)
295+
e.lock.Lock()
296+
e.totalCollectionsCount = 0
297+
e.lock.Unlock()
293298
}
294299
}
295300

0 commit comments

Comments
 (0)