updated logger message to be more helpful

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-11-25 18:56:36 -05:00
parent ff93d99fcb
commit 95022c5a24

View File

@@ -127,12 +127,14 @@ func (index *SpecIndex) lookupRolodex(uri []string) *Reference {
rFile, rError := index.rolodex.Open(absoluteFileLocation) rFile, rError := index.rolodex.Open(absoluteFileLocation)
if rError != nil { if rError != nil {
index.logger.Error("unable to open rolodex file", "file", absoluteFileLocation, "error", rError) index.logger.Error("unable to open the rolodex file, check specification references and base path",
"file", absoluteFileLocation, "error", rError)
return nil return nil
} }
if rFile == nil { if rFile == nil {
index.logger.Error("rolodex file is empty!", "file", absoluteFileLocation) index.logger.Error("cannot locate file in the rolodex, check specification references and base path",
"file", absoluteFileLocation)
return nil return nil
} }
if rFile.GetIndex() != nil { if rFile.GetIndex() != nil {