git ssb

0+

cel / pull-git-remote-helper



Commit 3d6a3aab67c024301d58ba7796cb37f358998127

Fix pako stream error messages

Charles Lehner committed on 2/9/2016, 7:19:40 PM
Parent: f791da7ccc8e720c47c297e2a39c746bfba7b8c3

Files changed

lib/pack.jschanged
lib/pack.jsView
@@ -36,9 +36,9 @@
3636 // console.error('inflated data', data.length)
3737 }
3838
3939 inflate.onEnd = function (status) {
40- ended = (status === 0) ? true : new Error(inflate.msg)
40+ ended = (status === 0) ? true : new Error(inflate.strm.msg)
4141 // console.error('inflated end', status, ended)
4242 }
4343
4444 return function (abort, cb) {
@@ -71,9 +71,9 @@
7171 queue.push([null, new Buffer(data)])
7272 }
7373
7474 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)])
7676 }
7777
7878 return function readOut(abort, cb) {
7979 if (ended)

Built with git-ssb-web