diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-11 14:49:15 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-11 14:49:15 +0200 |
commit | fde80560c28fb67af46b0376cb593b9889637692 (patch) | |
tree | 6d317d99c9d111d3929d0f45e3d16a2e09b6c7cd | |
parent | ce541855d49ce6d40535a4777f08d990ab7b0122 (diff) |
fix task.to_rdf for tasks without error report
-rw-r--r-- | application.rb | 2 |
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' |