summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-06-06 16:54:56 +0000
committerChristoph Helma <helma@in-silico.ch>2011-06-06 16:54:56 +0000
commit7bbc70d38d81a5a57d90c525d90ccf7bf8f59426 (patch)
tree34c43ef139456436b32ec42128c9162be8205d59 /example.rb
parentb542cfbd54901ad86d60fed03c8a05f9151f7616 (diff)
halts (partially) substituted by OpenTox errors
Diffstat (limited to 'example.rb')
-rwxr-xr-xexample.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.rb b/example.rb
index b0b591e..636579e 100755
--- a/example.rb
+++ b/example.rb
@@ -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)