diff options
Diffstat (limited to 'lib/environment.rb')
-rw-r--r-- | lib/environment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/environment.rb b/lib/environment.rb index b46bf19..29dcbdb 100644 --- a/lib/environment.rb +++ b/lib/environment.rb @@ -46,7 +46,7 @@ before {$sinatra = self unless $sinatra} class Sinatra::Base # overwriting halt to log halts (!= 202) def halt(*response) - LOGGER.error "halt "+response.first.to_s+" "+(response.size>1 ? response[1].to_s : "") if response.first >= 300 + LOGGER.error "halt "+response.first.to_s+" "+(response.size>1 ? response[1].to_s : "") if response and response.first and response.first >= 300 # orig sinatra code: response = response.first if response.length == 1 throw :halt, response |