add missing show on sentry cookbook
This commit is contained in:
parent
5a65581beb
commit
3306e6ff3c
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ The function `formatMessage` simply uses the request and the exception to return
|
||||||
```haskell
|
```haskell
|
||||||
formatMessage :: Maybe Request -> SomeException -> String
|
formatMessage :: Maybe Request -> SomeException -> String
|
||||||
formatMessage Nothing exception = "Exception before request could be parsed: " ++ show exception
|
formatMessage Nothing exception = "Exception before request could be parsed: " ++ show exception
|
||||||
formatMessage (Just request) exception = "Exception " ++ show exception ++ " while handling request " ++ request
|
formatMessage (Just request) exception = "Exception " ++ show exception ++ " while handling request " ++ show request
|
||||||
```
|
```
|
||||||
|
|
||||||
The only piece left now is the `recordUpdate` function which allows to decorate with other [attributes](https://docs.sentry.io/clientdev/attributes/) the default `SentryRecord`.
|
The only piece left now is the `recordUpdate` function which allows to decorate with other [attributes](https://docs.sentry.io/clientdev/attributes/) the default `SentryRecord`.
|
||||||
|
|
Loading…
Reference in a new issue