Project: aptanastudio
Issue APSTUD-4378: Add name of errant file to error message for MetadataReader.loadXML()
When writing out the following to the log file, we should at least write out the name of the documentation file, and if possible _something_ about where in the file the error occurs (line #, character count, anything) {code} (Build 3.0.3.qualifier) [ERROR] An error occurred while parsing the documentation XML file. The value of attribute "name" associated with an element type "null" must not contain the '<' character. java.lang.Exception: An error occurred while parsing the documentation XML file. The value of attribute "name" associated with an element type "null" must not contain the '<' character. com.aptana.editor.common.contentassist.MetadataReader.loadXML(MetadataReader.java:216) com.aptana.editor.js.contentassist.index.SDocMLFileIndexingParticipant.index(SDocMLFileIndexingParticipant.java:52) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:322) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:306) com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:265) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:122) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513) org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422) com.aptana.editor.js.JSMetadataLoader$1.run(JSMetadataLoader.java:139) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 5