Skip to content
Browse files

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
  • Loading branch information...
1 parent a99c750 commit 7f979e4f78d82e7c0ec1e288000cdf731f7b59aa @bufferoverflow bufferoverflow committed Jan 23, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/nodejs/lib/thrift/thrift.js
View
4 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)
}

0 comments on commit 7f979e4

Please sign in to comment.
Something went wrong with that request. Please try again.