diff options
author | Christoph Helma <ch@in-silico.ch> | 2010-01-31 20:17:55 +0100 |
---|---|---|
committer | Christoph Helma <ch@in-silico.ch> | 2010-01-31 20:17:55 +0100 |
commit | 3ca6d652f1433cb851e10a6cf89eb16fc6b2d9c3 (patch) | |
tree | 84df61275f2f126be47382fee1bb12243ea84f58 | |
parent | 41b76cf674db964f68566229e05abacd97d66e72 (diff) |
dataset deletion fixed
-rw-r--r-- | application.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 481e2b3..e340b24 100644 --- a/application.rb +++ b/application.rb @@ -93,7 +93,11 @@ end delete '/?' do Dataset.all.each do |d| - File.delete d.file + begin + File.delete d.file + rescue + LOGGER.error "Cannot delete dataset file '#{d.file}'" + end d.destroy! end "All datasets deleted." |