Skip to content

Commit 562bb85

Browse files
joelanfordCopilot
andauthored
Update internal/catalogd/storage/storage.go
Co-authored-by: Copilot <[email protected]>
1 parent 2dd3ca4 commit 562bb85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/catalogd/storage/storage.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,21 @@ func NewInstances(opts ...InstancesOption) *Instances {
6464

6565
func (i *Instances) Files() Files {
6666
if i.files == nil {
67-
panic("files data was not initialized")
67+
panic("files data was not initialized. Ensure that the 'WithFiles' option is used when creating the Instances object.")
6868
}
6969
return i.files
7070
}
7171

7272
func (i *Instances) Indices() Indices {
7373
if i.indices == nil {
74-
panic("indices data was not initialized")
74+
panic("indices data was not initialized. Ensure that the 'WithIndices' option is used when creating the Instances object.")
7575
}
7676
return i.indices
7777
}
7878

7979
func (i *Instances) GraphQLSchemas() GraphQLSchemas {
8080
if i.graphQLSchemas == nil {
81-
panic("graphQLSchemas data was not initialized")
81+
panic("graphQLSchemas data was not initialized. Ensure that the 'WithGraphQLSchemas' option is used when creating the Instances object.")
8282
}
8383
return i.graphQLSchemas
8484
}

0 commit comments

Comments
 (0)