Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions collections_loader.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package fscli

import (
"log"
"fmt"
"os"
"sync"

"cloud.google.com/go/firestore"
Expand Down Expand Up @@ -51,7 +52,8 @@ func fetchCollections(baseDoc string, getCollectionsIterator func(baseDoc string
var cols []*firestore.CollectionRef
pageToken, err := p.NextPage(&cols)
if err != nil {
log.Fatal(err)
fmt.Fprintf(os.Stderr, "\nERROR: %v\n", err)
unmarkCollectionsFetched(baseDoc)
return
}
collections = append(collections, getCollectionIds(cols)...)
Expand Down
Loading