diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-04 15:27:01 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-04 15:27:01 +0200 |
commit | 612db56ce522a632414158917c2462fe40c242dc (patch) | |
tree | 199fd892bedfeb6e92dd51fa5cba4d090dceb6ac /lib/task.rb | |
parent | c4d63fc2430caaed39e230e14db7e043642fbd50 (diff) |
use task-status-code from task-service (to fix inconsistent task status codes)
Diffstat (limited to 'lib/task.rb')
-rw-r--r-- | lib/task.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/task.rb b/lib/task.rb index 0ee3a11..19f42d6 100644 --- a/lib/task.rb +++ b/lib/task.rb @@ -8,6 +8,7 @@ module OpenTox def initialize(uri=nil) super uri + @http_code = 202 @metadata = { DC.title => "", DC.date => "", @@ -154,6 +155,7 @@ module OpenTox # not stored just for to_rdf def add_error_report( error_report ) + raise "not an error report: "+error_report.class.to_s unless error_report.is_a?(ErrorReport) @error_report = error_report end |