Report label as error not taskName

This commit is contained in:
Dirk Baeumer
2017-11-20 11:19:07 +01:00
parent dda74a5deb
commit df7e7afa18

View File

@@ -1233,7 +1233,7 @@ namespace CustomTask {
taskName = external.label;
}
if (!taskName) {
context.problemReporter.error(nls.localize('ConfigurationParser.noTaskName', 'Error: tasks must provide a taskName property. The task will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
context.problemReporter.error(nls.localize('ConfigurationParser.noTaskName', 'Error: a task must provide a label property. The task will be ignored.\n{0}\n', JSON.stringify(external, null, 4)));
return undefined;
}