Update script/validate-data/index.ts

Co-authored-by: Bishal Prasad <bishal-pdmsft@github.com>
This commit is contained in:
Anurag Chauhan
2022-05-03 11:00:55 +05:30
committed by GitHub
parent b3895dd7f8
commit 52bd793f34
+1 -1
View File
@@ -112,7 +112,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string, allow
workflowErrors.errors.push(`Workflow categories cannot be null or empty`)
}
else if(!folder_categories.some(category => properties.categories[0].toLowerCase() == category.toLowerCase())) {
workflowErrors.errors.push(`The first category in properties.json categories for workflow in ${basename(path)} folder must be one of "${folder_categories}"`)
workflowErrors.errors.push(`The first category in properties.json categories for workflow in ${basename(path)} folder must be one of "${folder_categories}. Either move the workflow to an appropriate directory or change the category."`)
}
}