Fixed #58941: Tasks: non-helpful error message ´The process task system can only execute custom tasks´

This commit is contained in:
Dirk Baeumer 2018-09-19 11:11:05 +02:00
parent bc71b0cf01
commit 45986ca7ab

View file

@ -139,7 +139,7 @@ export class ProcessTaskSystem implements ITaskSystem {
private executeTask(task: Task, trigger: string = Triggers.command): ITaskExecuteResult {
if (!CustomTask.is(task)) {
throw new Error('The process task system can only execute custom tasks.');
throw new Error(nls.localize('version1_0', 'The task system is configured for version 0.1.0 (see tasks.json file), which can only execute cumstom tasks. Upgrade to version 2.0.0 to run the task: {0}', task._label));
}
let telemetryEvent: TelemetryEvent = {
trigger: trigger,