From: Roger Meier Date: Sun, 23 Jan 2011 10:57:03 +0000 (+0000) Subject: THRIFT-1042 Fix TApplicationException.read X-Git-Tag: 0.7.0~210 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7f979e4f78d82e7c0ec1e288000cdf731f7b59aa;p=common%2Fthrift.git THRIFT-1042 Fix TApplicationException.read Patch: Wade Simmons git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1062377 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/nodejs/lib/thrift/thrift.js b/lib/nodejs/lib/thrift/thrift.js index 87acc6f7..53ca1066 100644 --- a/lib/nodejs/lib/thrift/thrift.js +++ b/lib/nodejs/lib/thrift/thrift.js @@ -85,7 +85,7 @@ TApplicationException.prototype.read = function(input) { case 1: if( ret.ftype == Type.STRING ){ ret = input.readString() - this.message = ret.value + this.message = ret } else { ret = input.skip(ret.ftype) } @@ -94,7 +94,7 @@ TApplicationException.prototype.read = function(input) { case 2: if( ret.ftype == Type.I32 ){ ret = input.readI32() - this.type = ret.value + this.type = ret } else { ret = input.skip(ret.ftype) }