git ssb

0+

cryptop / multiblob



forked from Dominic / multiblob

Commit 50e5caea49fd5f84ce8bcacdcb8184ab7ceb0628

handle error from stat

Henry committed on 4/24/2017, 2:49:23 PM
Parent: 8a23233b6d6ef7855af5d5bc80121dfd89928d4b

Files changed

index.jschanged
index.jsView
@@ -174,8 +174,9 @@
174174 ))
175175
176176 var stream = defer.source()
177177 stat(toPath(dir, hash), function (err, stat) {
178 + if(err) return stream.abort(err)
178179 if(opts.size != null && opts.size !== stat.size)
179180 stream.abort(new Error('incorrect file length,'
180181 + ' requested:' + opts.size + ' file was:' + stat.size
181182 + ' for file:' + hash

Built with git-ssb-web