summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
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'