* Added additional logging around line causing error

* add logging for read of spec dir

* removed extra logging and added check to test if item is dir before trying a dir read
This commit is contained in:
Ronnie Geraghty 2023-02-08 17:37:20 -08:00 коммит произвёл GitHub
Родитель b753293679
Коммит 048ecb9c84
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -84,8 +84,11 @@ async function getServicesFromSpecRepo(packages: PackageList): Promise<PackageLi
const serviceName = serviceNameMap[serviceSpecDir] === undefined ? serviceSpecDir : serviceNameMap[serviceSpecDir];
// skip service api spec if it's in the list of services to hide
if (servicesToHide[serviceName]) continue;
// test if service spec dir is a dir, if not move on.
if (!fs.lstatSync(path.join(specsDirPath, serviceSpecDir)).isDirectory()) continue;
// list of plane dirs in service spec dir, should be either data-plane and/or resource-manager
const planeSpecDirs = fs.readdirSync(path.join(specsDirPath, serviceSpecDir));
let planeSpecDirs: string[] = fs.readdirSync(path.join(specsDirPath, serviceSpecDir));
// loop through plane dirs in the service spec dir
for (let planeSpecDir of planeSpecDirs) {
// determine plane and SDK name
let plane: Plane = "UNABLE TO BE DETERMINED";