THRIFT-2854 Go Struct writer and reader looses important error information
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info>
This closes #291
Fixes error reporting in go generator
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index c13ba74..a93318a 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -30,7 +30,8 @@
ServicesTest.thrift \
GoTagTest.thrift \
TypedefFieldTest.thrift \
- RefAnnotationFieldsTest.thrift
+ RefAnnotationFieldsTest.thrift \
+ ErrorTest.thrift
mkdir -p gopath/src
grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
$(THRIFT) -r IncludesTest.thrift
@@ -42,6 +43,7 @@
$(THRIFT) GoTagTest.thrift
$(THRIFT) TypedefFieldTest.thrift
$(THRIFT) RefAnnotationFieldsTest.thrift
+ $(THRIFT) ErrorTest.thrift
GOPATH=`pwd`/gopath $(GO) get code.google.com/p/gomock/gomock
ln -nfs ../../../thrift gopath/src/thrift
ln -nfs ../../tests gopath/src/tests
@@ -53,7 +55,8 @@
binarykeytest \
servicestest \
typedeffieldtest \
- refannotationfieldstest
+ refannotationfieldstest \
+ errortest
GOPATH=`pwd`/gopath $(GO) test thrift tests
clean-local:
@@ -73,4 +76,5 @@
OptionalFieldsTest.thrift \
RefAnnotationFieldsTest.thrift \
ServicesTest.thrift \
- TypedefFieldTest.thrift
+ TypedefFieldTest.thrift \
+ ErrorTest.thrift