mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 20:47:44 +00:00
updated logger message to be more helpful
Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user