Commit 3d6a3aab67c024301d58ba7796cb37f358998127
Fix pako stream error messages
Charles Lehner committed on 2/9/2016, 7:19:40 PMParent: f791da7ccc8e720c47c297e2a39c746bfba7b8c3
Files changed
lib/pack.js | changed |
lib/pack.js | ||
---|---|---|
@@ -36,9 +36,9 @@ | ||
36 | 36 | // console.error('inflated data', data.length) |
37 | 37 | } |
38 | 38 | |
39 | 39 | inflate.onEnd = function (status) { |
40 | - ended = (status === 0) ? true : new Error(inflate.msg) | |
40 | + ended = (status === 0) ? true : new Error(inflate.strm.msg) | |
41 | 41 | // console.error('inflated end', status, ended) |
42 | 42 | } |
43 | 43 | |
44 | 44 | return function (abort, cb) { |
@@ -71,9 +71,9 @@ | ||
71 | 71 | queue.push([null, new Buffer(data)]) |
72 | 72 | } |
73 | 73 | |
74 | 74 | def.onEnd = function (status) { |
75 | - queue.push([(status === 0) ? true : new Error(def.msg)]) | |
75 | + queue.push([(status === 0) ? true : new Error(def.strm.msg)]) | |
76 | 76 | } |
77 | 77 | |
78 | 78 | return function readOut(abort, cb) { |
79 | 79 | if (ended) |
Built with git-ssb-web