Fail correctly in go-to-protobuf

We need to return earlier.
pull/6/head
Clayton Coleman 2016-07-12 23:43:12 -04:00
parent 8f08cb3391
commit c55f47c4c9
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 3 additions and 3 deletions

View File

@ -179,13 +179,13 @@ func Run(g *Generator) {
},
"public",
)
c.Verify = g.Common.VerifyOnly
c.FileTypes["protoidl"] = NewProtoFile()
if err != nil {
log.Fatalf("Failed making a context: %v", err)
}
c.Verify = g.Common.VerifyOnly
c.FileTypes["protoidl"] = NewProtoFile()
if err := protobufNames.AssignTypesToPackages(c); err != nil {
log.Fatalf("Failed to identify Common types: %v", err)
}