From ab015da9d34fd2807e60724cb21b5429a187f734 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 6 Aug 2013 19:30:15 -0700 Subject: [PATCH] Bug 45203. Include class stack in the error message. --- .../internal/ui/refactoring/includes/IncludeOrganizer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludeOrganizer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludeOrganizer.java index 5fb37f62ab7..90ca609a1dc 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludeOrganizer.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/includes/IncludeOrganizer.java @@ -501,8 +501,9 @@ public class IncludeOrganizer { declarationText.append(variable.getName()); declarationText.append(';'); } else { - CUIPlugin.logError("Unexpected type of binding " + binding.getName() + //$NON-NLS-1$ - " - " + binding.getClass().getSimpleName()); //$NON-NLS-1$ + CUIPlugin.log(new IllegalArgumentException( + "Unexpected type of binding " + binding.getName() + //$NON-NLS-1$ + " - " + binding.getClass().getSimpleName())); //$NON-NLS-1$ } // Append the closing curly brackets from the namespaces (if any).