X-Git-Url: http://secure.phpeclipse.com

diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/RefreshBookmarkAction.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/RefreshBookmarkAction.java
index 366644b..3250564 100644
--- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/RefreshBookmarkAction.java
+++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/actions/RefreshBookmarkAction.java
@@ -8,6 +8,7 @@ import com.quantum.ImageStore;
 import com.quantum.Messages;
 import com.quantum.model.NotConnectedException;
 import com.quantum.ui.dialog.ExceptionDisplayDialog;
+import com.quantum.ui.dialog.SQLExceptionDialog;
 import com.quantum.view.bookmark.TreeNode;
 
 import org.eclipse.ui.IViewPart;
@@ -44,7 +45,12 @@ public class RefreshBookmarkAction extends SelectionListenerAction {
 	 * @param e
 	 */
 	private void handleException(Throwable t) {
-		ExceptionDisplayDialog.openError(
-				this.view.getSite().getShell(), null, null, t);
+		if (t instanceof SQLException) {
+			SQLExceptionDialog.openException(
+					this.view.getSite().getShell(), null, (SQLException) t);
+		} else {
+			ExceptionDisplayDialog.openError(
+					this.view.getSite().getShell(), null, null, t);
+		}
 	}
 }