From 7f979e4f78d82e7c0ec1e288000cdf731f7b59aa Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Sun, 23 Jan 2011 10:57:03 +0000 Subject: [PATCH] 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 --- lib/nodejs/lib/thrift/thrift.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.17.1