From 2ff2cdf63d7f9874960c3efea01b4db2a80f9f68 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 13 May 2008 12:27:38 +0000 Subject: [PATCH 1/1] api06: fix syntax errors. --- lib/osm.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/osm.rb b/lib/osm.rb index 8798866e5..38053e12a 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -10,7 +10,9 @@ module OSM # The base class for API Errors. class APIError < RuntimeError - def render_opts { :text => "", :status => :internal_server_error } end + def render_opts + { :text => "", :status => :internal_server_error } + end end # Raised when an API object is not found. @@ -19,12 +21,16 @@ module OSM # Raised when a precondition to an API action fails sanity check. class APIPreconditionFailedError < APIError - def render_opts { :text => "", :status => :precondition_failed } end + def render_opts + { :text => "", :status => :precondition_failed } + end end # Raised when to delete an already-deleted object. class APIAlreadyDeletedError < APIError - def render_opts { :text => "", :status => :gone } end + def render_opts + { :text => "", :status => :gone } + end end # Raised when the provided version is not equal to the latest in the db. -- 2.43.2