[ https://issues.apache.org/jira/browse/BEAM-6838?focusedWorklogId=216393&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-216393 ]
ASF GitHub Bot logged work on BEAM-6838: ---------------------------------------- Author: ASF GitHub Bot Created on: 20/Mar/19 18:42 Start Date: 20/Mar/19 18:42 Worklog Time Spent: 10m Work Description: youngoli commented on pull request #8064: [BEAM-6838] Go SDK: Improving error msgs in pipeline serialization. URL: https://github.com/apache/beam/pull/8064#discussion_r267492152 ########## File path: sdks/go/pkg/beam/core/runtime/graphx/coder.go ########## @@ -217,7 +217,7 @@ func (b *CoderUnmarshaller) makeCoder(c *pb.Coder) (*coder.Coder, error) { // the portable pipeline model directly (BEAM-2885) if elm.GetSpec().GetSpec().GetUrn() != "" && elm.GetSpec().GetSpec().GetUrn() != urnCustomCoder { // TODO(herohde) 11/17/2017: revisit this restriction - return nil, fmt.Errorf("expected length prefix of custom coder only: %v", elm) + return nil, fmt.Errorf("could not make coder from proto %v, expected length prefix of custom coder only: %v", *c, elm) Review comment: Done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 216393) Time Spent: 2h 10m (was: 2h) > Improve error messages for unregistered protos > ---------------------------------------------- > > Key: BEAM-6838 > URL: https://issues.apache.org/jira/browse/BEAM-6838 > Project: Beam > Issue Type: Sub-task > Components: sdk-go > Reporter: Daniel Oliveira > Assignee: Daniel Oliveira > Priority: Minor > Time Spent: 2h 10m > Remaining Estimate: 0h > > When users have a type that can't be serialized (it has a function Field or > similar) or more complex protocol buffers, the error should be improved to > display the type being registered, and better yet, the beam.RegisterType(...) > code they can use to enable use of their type. -- This message was sent by Atlassian JIRA (v7.6.3#76005)