Skip to content

Commit

Permalink
Merge pull request sinatra#915 from vipulnsward/fix-error-access
Browse files Browse the repository at this point in the history
Fix docs when printing error from `env['sinatra.error']`.
  • Loading branch information
rkh committed Aug 14, 2014
2 parents fc0c330 + 8e559c8 commit 79c5e31
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.hu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ end

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

Expand Down
2 changes: 1 addition & 1 deletion README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ set :show_exceptions, :after_handler

``` ruby
error do
'고약한 오류가 발생했군요 - ' + env['sinatra.error'].name
'고약한 오류가 발생했군요 - ' + env['sinatra.error'].message
end
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion README.pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.pt-pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,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
~~~~

Expand Down

0 comments on commit 79c5e31

Please sign in to comment.