getWizard().getPassword()
);
- if (dataSource.testConnection()) {
+ try{
+ dataSource.testConnection();
MessageDialog.openConfirm(parent.getShell(), "Test successful", "Test successful");
- } else {
- MessageDialog.openWarning(parent.getShell(), "Test unsuccessful", "Test unsuccessful");
- }
+ } catch(Exception e){
+ MessageDialog.openWarning(parent.getShell(), "Test unsuccessful", "Test unsuccessful \n\n" + e.getCause());
+ }
}
/* (non-Javadoc)