From 818d7b9eeadb6b286cc55f0e920b5d197421bf98 Mon Sep 17 00:00:00 2001 From: Masayoshi Mizutani Date: Sat, 6 Apr 2024 11:39:00 +0900 Subject: [PATCH] fix indent --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6744d63..dbadb51 100644 --- a/README.md +++ b/README.md @@ -119,16 +119,16 @@ exit status 1 If you want to send the error to sentry.io, you can extract the contextual variables by `goErr.Values()` and set them to the scope. ```go - // Sending error to Sentry - hub := sentry.CurrentHub().Clone() - hub.ConfigureScope(func(scope *sentry.Scope) { - if goErr := goerr.Unwrap(err); goErr != nil { - for k, v := range goErr.Values() { - scope.SetExtra(k, v) - } - } - }) - evID := hub.CaptureException(err) +// Sending error to Sentry +hub := sentry.CurrentHub().Clone() +hub.ConfigureScope(func(scope *sentry.Scope) { + if goErr := goerr.Unwrap(err); goErr != nil { + for k, v := range goErr.Values() { + scope.SetExtra(k, v) + } + } +}) +evID := hub.CaptureException(err) ``` ### Structured logging