Skip to content

Commit

Permalink
More information for "Invalid project description" Error eclipse-plat…
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T committed Nov 15, 2024
1 parent 6dd6732 commit 38988d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 38988d8

Please sign in to comment.