From baa0285de15ff19cd21147e7888d120a863defc9 Mon Sep 17 00:00:00 2001 From: Joe Eschen Date: Mon, 25 Sep 2023 12:00:36 -0700 Subject: [PATCH] wrap the err in the erorr message --- pkg/repositories/transformers/workflow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/repositories/transformers/workflow.go b/pkg/repositories/transformers/workflow.go index ac0a7fba..4acfa1c4 100644 --- a/pkg/repositories/transformers/workflow.go +++ b/pkg/repositories/transformers/workflow.go @@ -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())) } }