Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
wrap the err in the erorr message
Browse files Browse the repository at this point in the history
  • Loading branch information
squiishyy committed Sep 25, 2023
1 parent f00cc75 commit baa0285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/repositories/transformers/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func FromWorkflowModel(workflowModel models.Workflow) (admin.Workflow, error) {
if len(workflowModel.TypedInterface) > 0 {
err = proto.Unmarshal(workflowModel.TypedInterface, &workflowInterface)
if err != nil {
return admin.Workflow{}, errors.NewFlyteAdminErrorf(codes.Internal, fmt.Sprintf("failed to unmarshal workflow %v interface", workflowModel.ID))
return admin.Workflow{}, errors.NewFlyteAdminErrorf(codes.Internal, fmt.Sprintf("failed to unmarshal workflow %v interface. Error message: %v", workflowModel.ID, err.Error()))
}
}

Expand Down

0 comments on commit baa0285

Please sign in to comment.