diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
commit | 7bbc70d38d81a5a57d90c525d90ccf7bf8f59426 (patch) | |
tree | 34c43ef139456436b32ec42128c9162be8205d59 /example.rb | |
parent | b542cfbd54901ad86d60fed03c8a05f9151f7616 (diff) |
halts (partially) substituted by OpenTox errors
Diffstat (limited to 'example.rb')
-rwxr-xr-x | example.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ class Example task.progress(10) log "upload dataset" - halt 400,"File not found: "+@@file.path.to_s unless File.exist?(@@file.path) + raise OpenTox::BadRequestError.new"File not found: "+@@file.path.to_s unless File.exist?(@@file.path) #data = File.read(@@file.path) #data_uri = OpenTox::RestClientWrapper.post(CONFIG[:services]["opentox-dataset"],{:content_type => @@file_type},data).chomp("\n") dataset = OpenTox::Dataset.create_from_csv_file(@@file.path,nil) |