Fixed Bug 52169 - PluginStopper should be logging errors
diff --git a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java
index d3d0720..a6fa620 100644
--- a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java
+++ b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/PluginStopper.java
@@ -100,8 +100,10 @@
 						System.out.println("Stopping: " + orderedBundles[i].getGlobalName() + " (#" + orderedBundles[i].getBundleId() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 					orderedBundles[i].stop();
 				}
-			} catch (Exception be) {
-				be.printStackTrace();//TODO Need to log the error
+			} catch (Exception e) {
+				String message = Policy.bind("activator.errorStoppingPlugin",orderedBundles[i].toString());  //$NON-NLS-1$
+				IStatus status = new Status(IStatus.ERROR, IPlatform.PI_RUNTIME_COMPATIBILITY, 1, message, e);
+				InternalPlatform.getDefault().log(status);
 			}
 		}
 	}
diff --git a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties
index c5a4e39..8984544 100644
--- a/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties
+++ b/bundles/org.eclipse.core.runtime.compatibility/src-runtime/org/eclipse/core/internal/plugins/messages.properties
@@ -12,10 +12,11 @@
 
 ok = OK
 
-# Plugin activation messages
+# Plugin activation/deactivation messages
 activator.applicationNotStarted=Legacy plug-in \"{0}\" must not be automatically activated on startup. This is probably caused by a previous crash in Eclipse.
 activator.unknownPrerequisite=Unknown prerequisite \"{0}\" for plugin \"{1}\".
 activator.errorStartingPrerequisite=Prerequisite \"{0}\" for plugin \"{1}\" for could not be started.
+activator.errorStoppingPlugin=Error while stopping plug-in \"{0}\".
 
 # Plugin event dispatcher messages
 pluginEvent.errorListener=Error dispatching plugin event.