Skip to content

Commit d30ee6f

Browse files
committed
formats
1 parent c0f6055 commit d30ee6f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/domain/event.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (b *InMemoryEventBus) PublishWithAck(ctx context.Context, event EventPayloa
114114
defer func() {
115115
if r := recover(); r != nil {
116116
errMsg := fmt.Sprintf("panic in event handler: %v", r)
117-
errCh <- fmt.Errorf(errMsg)
117+
errCh <- fmt.Errorf("%s", errMsg)
118118
}
119119
}()
120120

@@ -151,7 +151,7 @@ func (b *InMemoryEventBus) PublishWithAck(ctx context.Context, event EventPayloa
151151
for i, err := range allErrors {
152152
errMsg += fmt.Sprintf("\n %d: %v", i+1, err)
153153
}
154-
callback(fmt.Errorf(errMsg))
154+
callback(fmt.Errorf("%s", errMsg))
155155
} else {
156156
callback(nil)
157157
}

internal/service/workspace_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (s *WorkspaceService) CreateWorkspace(ctx context.Context, id string, name
223223
operation := s.contactService.UpsertContact(ctx, id, contact)
224224
if operation.Action == domain.UpsertContactOperationError {
225225
s.logger.WithField("workspace_id", id).WithField("user_id", user.ID).WithField("error", operation.Error).Error("Failed to create contact for owner")
226-
return nil, fmt.Errorf(operation.Error)
226+
return nil, fmt.Errorf("%s", operation.Error)
227227
}
228228

229229
// create a default list for the workspace

0 commit comments

Comments
 (0)