Skip to content

Commit 3a33a52

Browse files
committed
Error reporting fix
1 parent 550d6e3 commit 3a33a52

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

dist/RSSalg.jar

161 Bytes
Binary file not shown.

src/application/GUI/RSSalgFrame.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,12 @@ protected Integer doInBackground() throws Exception {
437437
try{
438438
startExperiment();
439439
}catch(Exception e){
440-
JOptionPane.showMessageDialog(RSSalgFrame.this, e.getMessage(), "Error starting experiment", JOptionPane.ERROR_MESSAGE);
440+
Throwable cause = e;
441+
while(cause.getCause() != null) {
442+
cause = cause.getCause();
443+
}
444+
445+
JOptionPane.showMessageDialog(RSSalgFrame.this, cause.getMessage() , "Error starting experiment", JOptionPane.ERROR_MESSAGE);
441446
}
442447
return 0;
443448
}

src/application/StartExperiment.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,11 @@ public static void main(String[] args) {
311311
StartExperiment experimentStarter = new StartExperiment();
312312
experimentStarter.run();
313313
}catch(Exception e){
314-
System.out.println(e.getMessage());
314+
Throwable cause = e;
315+
while(cause.getCause() != null) {
316+
cause = cause.getCause();
317+
}
318+
System.out.println(cause.getMessage());
315319
}
316320
}else{
317321
EventQueue.invokeLater(new Runnable() {

src/experimentSetting/CoTrainingSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void readProperties(String propertiesFile) throws Exception{
155155
throw new Exception("ERROR: error reading properties file: file " + propertiesFile + "does not exist", e);
156156
}
157157
clear();
158-
System.out.println("Reading the dataset properties from file: " + propertiesFile);
158+
System.out.println("Reading co-training settings from file: " + propertiesFile);
159159

160160

161161
setPoolSize(PropertiesReader.readInt(properties, "poolSize"));

0 commit comments

Comments
 (0)