diff --git a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java index 872223f6201..afc49303807 100644 --- a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java +++ b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java @@ -192,7 +192,7 @@ public void checkAccessible(int flags) throws CoreException { */ protected void checkDescription(IProject project, IProjectDescription desc, boolean moving) throws CoreException { URI location = desc.getLocationURI(); - String message = Messages.resources_invalidProjDesc; + String message = NLS.bind(Messages.resources_invalidProjDesc, project.getName(), location.toString()); MultiStatus status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IResourceStatus.INVALID_VALUE, message, null); status.merge(workspace.validateName(desc.getName(), IResource.PROJECT)); if (moving) { diff --git a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/messages.properties b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/messages.properties index 0e7bb02cebf..c4bbe1f5d69 100644 --- a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/messages.properties +++ b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/messages.properties @@ -215,7 +215,7 @@ resources_invalidCharInName = {0} is an invalid character in resource name ''{1} resources_invalidCharInPath = {0} is an invalid character in path ''{1}''. resources_invalidName = ''{0}'' is an invalid name on this platform. resources_invalidPath = ''{0}'' is an invalid resource path. -resources_invalidProjDesc = Invalid project description. +resources_invalidProjDesc = Invalid project description for project ''{0}'' at ''{1}'' resources_invalidResourceName = ''{0}'' is an invalid resource name. resources_invalidRoot = Root (/) is an invalid resource path. resources_markerNotFound = Marker id {0} not found.