Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java')
-rw-r--r--org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java b/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java
index 165a35053..b05c6760d 100644
--- a/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java
+++ b/org.eclipse.help/src/org/eclipse/help/internal/toc/TocFileProvider.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2008 IBM Corporation and others.
+ * Copyright (c) 2006, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -20,6 +20,7 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.help.AbstractTocProvider;
import org.eclipse.help.ITocContribution;
import org.eclipse.help.internal.HelpPlugin;
+import org.eclipse.help.internal.util.ResourceLocator;
/*
* Provides toc data from toc XML files to the help system.
@@ -46,8 +47,12 @@ public class TocFileProvider extends AbstractTocProvider {
contributions.add(toc);
}
catch (Throwable t) {
- String msg = "Error reading help table of contents file /\"" + tocFiles[i].getPluginId() + '/' + tocFiles[i].getFile() + "\" (skipping file)"; //$NON-NLS-1$ //$NON-NLS-2$
- HelpPlugin.logError(msg, t);
+ String pluginId = tocFiles[i].getPluginId();
+ String file = tocFiles[i].getFile();
+ String msg = "Error reading help table of contents file /\"" //$NON-NLS-1$
+ + ResourceLocator.getErrorPath(pluginId, file, locale)
+ + "\" (skipping file)"; //$NON-NLS-1$
+ HelpPlugin.logError(msg, t);
}
}
return (ITocContribution[])contributions.toArray(new ITocContribution[contributions.size()]);

Back to the top