Skip to content

Commit

Permalink
Modified response message in file upload failure
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanoop committed Jun 26, 2024
1 parent 554e575 commit 18d22a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/aksw/gerbil/web/FileUploadController.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public ModelAndView upload() {
FileBasedNIFDataset dataset = new FileBasedNIFDataset(path+file.getName(), file.getName(), Lang.TTL);
dataset.init();
file.setDescription("Found "+dataset.getInstances().size()+" Instances");
}catch(GerbilException e){
}catch(Exception e){
isErroneousFile =true;
file.setError(e.getErrorType().getDescription());
file.setError(e.getMessage());
}
}
UploadFileContainer uploadFileContainer = new UploadFileContainer(files);
Expand Down

0 comments on commit 18d22a0

Please sign in to comment.