Skip to content

Commit

Permalink
missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei committed Nov 21, 2024
1 parent 26a8703 commit 8f6aa01
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (s *Service) GetUserDefinedTransformerById(

dto, err := dtomaps.ToUserDefinedTransformerDto(&transformer, baseSystemTransformerSourceMap)
if err != nil {
return nil, fmt.Errorf("failed to map user defined transformer %s with source %d", neosyncdb.UUIDString(transformer.ID), transformer.Source)
return nil, fmt.Errorf("failed to map user defined transformer %s with source %d: %w", neosyncdb.UUIDString(transformer.ID), transformer.Source, err)
}

return connect.NewResponse(&mgmtv1alpha1.GetUserDefinedTransformerByIdResponse{
Expand Down Expand Up @@ -109,7 +109,7 @@ func (s *Service) CreateUserDefinedTransformer(ctx context.Context, req *connect

dto, err := dtomaps.ToUserDefinedTransformerDto(&ct, baseSystemTransformerSourceMap)
if err != nil {
return nil, fmt.Errorf("failed to map user defined transformer %s with source %d", neosyncdb.UUIDString(ct.ID), ct.Source)
return nil, fmt.Errorf("failed to map user defined transformer %s with source %d: %w", neosyncdb.UUIDString(ct.ID), ct.Source, err)
}

return connect.NewResponse(&mgmtv1alpha1.CreateUserDefinedTransformerResponse{
Expand Down

0 comments on commit 8f6aa01

Please sign in to comment.