THRIFT-1042 Fix TApplicationException.read
authorRoger Meier <roger@apache.org>
Sun, 23 Jan 2011 10:57:03 +0000 (10:57 +0000)
committerRoger Meier <roger@apache.org>
Sun, 23 Jan 2011 10:57:03 +0000 (10:57 +0000)
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

index 87acc6f..53ca106 100644 (file)
@@ -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)
               }