From fde80560c28fb67af46b0376cb593b9889637692 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Wed, 11 May 2011 14:49:15 +0200 Subject: fix task.to_rdf for tasks without error report --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application.rb b/application.rb index 9969fd6..e349b3d 100644 --- a/application.rb +++ b/application.rb @@ -107,7 +107,7 @@ get '/:id/?' do response['Content-Type'] = 'application/rdf+xml' t = OpenTox::Task.new task.uri t.add_metadata task.metadata - t.add_error_report task.errorReport + t.add_error_report task.errorReport if task.errorReport halt code, t.to_rdfxml when /text\/uri\-list/ response['Content-Type'] = 'text/uri-list' -- cgit v1.2.3