summaryrefslogtreecommitdiff
path: root/report/report_application.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-06-17 00:12:50 +0200
committermguetlein <martin.guetlein@gmail.com>2011-06-17 00:12:50 +0200
commit4c76f80407d61cce9062659a3d041f55980d9cd3 (patch)
tree877577e745b0e670f4c65a24cb2da7526acba80d /report/report_application.rb
parent654ff16ab0c63c9125785e9fe6546973cfe462a7 (diff)
parente06c018afbae2066950bc1cd43262cf7a501ba90 (diff)
Merge branch 'development' of github.com:opentox/validation into development
Diffstat (limited to 'report/report_application.rb')
-rwxr-xr-xreport/report_application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/report/report_application.rb b/report/report_application.rb
index f7780c3..8f74bd9 100755
--- a/report/report_application.rb
+++ b/report/report_application.rb
@@ -7,7 +7,7 @@ end
def get_docbook_resource(filepath)
perform do |rs|
- halt 404,"not found: "+filepath unless File.exist?(filepath)
+ raise OpenTox::NotFoundError.new"not found: "+filepath unless File.exist?(filepath)
types = MIME::Types.type_for(filepath)
content_type(types[0].content_type) if types and types.size>0 and types[0]
result = body(File.new(filepath))