diff options
Diffstat (limited to 'report/report_application.rb')
-rwxr-xr-x | report/report_application.rb | 2 |
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)) |