git ssb

3+

cel / ssb-npm-registry



Commit 31dc9fa91dc77219aa7e09bc842ef3183435ce54

Handle aborted message publish

cel committed on 1/12/2018, 9:19:24 PM
Parent: c60914528e52e15a04533da8eabea5c7f8f282d3

Files changed

index.jschanged
index.jsView
@@ -823,9 +823,9 @@
823823
824824 Req.prototype.publishPkgs = function (mentions) {
825825 var self = this
826826 exports.publishPkgMentions(self.server.sbot, mentions, function (err, msgs) {
827- if (err) self.respondError(500, err.stack || err)
827+ if (err) return self.respondError(500, err.stack || err)
828828 self.server.pushBlobs(self.blobsToPush, function (err) {
829829 if (err) console.error('[npm-registry] Failed to push blob ' + id + ': ' + (err.stack || err))
830830 self.respond(201)
831831 console.log(msgs.map(function (msg) { return msg.key }).join('\n'))

Built with git-ssb-web