Make exception error more accurate

This commit is contained in:
Gabriel DeBacker
2019-07-30 08:35:06 -07:00
parent 9bbf3f25d5
commit 5e135c4caf

View File

@@ -742,7 +742,7 @@ export class ExtHostTask implements ExtHostTaskShape {
}
if (resolvedTask.definition !== task.definition) {
throw new Error('Unexpected: A task definition cannot be modified when resolving a task.');
throw new Error('Unexpected: The resolved task definition must be the same object as the original task definition. The task definition cannot be changed.');
}
if (CustomExecutionDTO.is(resolvedTaskDTO.execution)) {