Skip to content

Commit 5d8ee71

Browse files
EcljpseB0Tjukzi
authored andcommitted
More information for "Invalid project description" Error #1619
#1619
1 parent 8e8670b commit 5d8ee71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Project.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void checkAccessible(int flags) throws CoreException {
192192
*/
193193
protected void checkDescription(IProject project, IProjectDescription desc, boolean moving) throws CoreException {
194194
URI location = desc.getLocationURI();
195-
String message = Messages.resources_invalidProjDesc;
195+
String message = NLS.bind(Messages.resources_invalidProjDesc, project.getName(), String.valueOf(location));
196196
MultiStatus status = new MultiStatus(ResourcesPlugin.PI_RESOURCES, IResourceStatus.INVALID_VALUE, message, null);
197197
status.merge(workspace.validateName(desc.getName(), IResource.PROJECT));
198198
if (moving) {

resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/utils/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ resources_invalidCharInName = {0} is an invalid character in resource name ''{1}
215215
resources_invalidCharInPath = {0} is an invalid character in path ''{1}''.
216216
resources_invalidName = ''{0}'' is an invalid name on this platform.
217217
resources_invalidPath = ''{0}'' is an invalid resource path.
218-
resources_invalidProjDesc = Invalid project description.
218+
resources_invalidProjDesc = Invalid project description for project ''{0}'' at ''{1}''
219219
resources_invalidResourceName = ''{0}'' is an invalid resource name.
220220
resources_invalidRoot = Root (/) is an invalid resource path.
221221
resources_markerNotFound = Marker id {0} not found.

0 commit comments

Comments
 (0)