FS utils throws IOException
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / acr / fs / FsContent.java
index 5920c420370c78a4051f9000820af7d16c1c34da..8fca831b024293084a07ded2ff93d9ad8a9085e4 100644 (file)
@@ -315,7 +315,11 @@ public class FsContent extends AbstractContent implements ProvidedContent {
 
        @Override
        public void remove() {
-               FsUtils.delete(path);
+               try {
+                       FsUtils.delete(path);
+               } catch (IOException e) {
+                       throw new RuntimeException("Cannot delete " + path, e);
+               }
        }
 
        @Override