1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Fix docs when printing error from env['sinatra.error'].

Fixes #914
This commit is contained in:
Vipul A M 2014-08-14 14:18:02 +05:30
parent 268de1cf99
commit 8e559c8559
11 changed files with 11 additions and 11 deletions

View file

@ -2177,7 +2177,7 @@ Routen-Block oder in einem Filter geworfen wurde. Die Exception kann über die
```ruby
error do
'Entschuldige, es gab einen hässlichen Fehler - ' + env['sinatra.error'].name
'Entschuldige, es gab einen hässlichen Fehler - ' + env['sinatra.error'].message
end
```

View file

@ -2115,7 +2115,7 @@ obtener de la variable Rack `sinatra.error`:
``` ruby
error do
'Disculpá, ocurrió un error horrible - ' + env['sinatra.error'].name
'Disculpá, ocurrió un error horrible - ' + env['sinatra.error'].message
end
```

View file

@ -2294,7 +2294,7 @@ variable Rack `sinatra.error` :
``` ruby
error do
'Désolé mais une méchante erreur est survenue - ' + env['sinatra.error'].name
'Désolé mais une méchante erreur est survenue - ' + env['sinatra.error'].message
end
```

View file

@ -454,7 +454,7 @@ előszűrő kivételt vált ki. A kivétel objektum lehívható a
```ruby
error do
'Elnézést, de valami szörnyű hiba lépett fel - ' + env['sinatra.error'].name
'Elnézést, de valami szörnyű hiba lépett fel - ' + env['sinatra.error'].message
end
```

View file

@ -2111,7 +2111,7 @@ end
``` ruby
error do
'エラーが発生しました。 - ' + env['sinatra.error'].name
'エラーが発生しました。 - ' + env['sinatra.error'].message
end
```

View file

@ -2276,7 +2276,7 @@ set :show_exceptions, :after_handler
``` ruby
error do
'고약한 오류가 발생했군요 - ' + env['sinatra.error'].name
'고약한 오류가 발생했군요 - ' + env['sinatra.error'].message
end
```

View file

@ -2319,7 +2319,7 @@ The exception object can be obtained from the `sinatra.error` Rack variable.
``` ruby
error do
'Sorry there was a nasty error - ' + env['sinatra.error'].name
'Sorry there was a nasty error - ' + env['sinatra.error'].message
end
```

View file

@ -695,7 +695,7 @@ obtido a partir da variável Rack `sinatra.error`:
``` ruby
error do
'Desculpe, houve um erro desagradável - ' + env['sinatra.error'].name
'Desculpe, houve um erro desagradável - ' + env['sinatra.error'].message
end
```

View file

@ -518,7 +518,7 @@ obtido a partir da variável Rack `sinatra.error`:
``` ruby
error do
'Peço desculpa, houve um erro desagradável - ' + env['sinatra.error'].name
'Peço desculpa, houve um erro desagradável - ' + env['sinatra.error'].message
end
```

View file

@ -2166,7 +2166,7 @@ end
```ruby
error do
'Sorry there was a nasty error - ' + env['sinatra.error'].name
'Sorry there was a nasty error - ' + env['sinatra.error'].message
end
```

View file

@ -1603,7 +1603,7 @@ end
~~~~ ruby
error do
'Sorry there was a nasty error - ' + env['sinatra.error'].name
'Sorry there was a nasty error - ' + env['sinatra.error'].message
end
~~~~