diff options
author | Christoph Helma <helma@in-silico.de> | 2009-07-21 12:57:38 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-07-21 12:57:38 +0200 |
commit | 2fe2bee86a57703fa328b336ed5450aeee31b22f (patch) | |
tree | 0f7f6c5b7a50ff5cbff139052c3ca4ec38bf99cd | |
parent | 11418075d5ff21cd68e2188af7693d4d65b92b86 (diff) |
status code added for failed post request
-rw-r--r-- | compounds.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compounds.rb b/compounds.rb index a775442..7ec4c85 100644 --- a/compounds.rb +++ b/compounds.rb @@ -67,6 +67,7 @@ post '/' do url_for("/", :full) + inchikey end rescue + status 500 "Cannot find an InChI Key for #{params[:name]}." end end |