Skip to content

Commit a09402b

Browse files
1 parent a91cb50 commit a09402b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/spectral/ipa/metrics/scripts/runMetricCollection.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ if (!oasFilePath && !fs.existsSync(config.defaultOasFilePath)) {
2323
process.exit(1);
2424
}
2525

26+
if (oasFilePath && !fs.existsSync(oasFilePath)) {
27+
console.error('Could not find OAS file path', oasFilePath);
28+
process.exit(1);
29+
}
30+
2631
const result = spawnSync('spectral', [
2732
'lint',
2833
oasFilePath ? oasFilePath : config.defaultOasFilePath,

0 commit comments

Comments
 (0)