Commit 31dc9fa91dc77219aa7e09bc842ef3183435ce54
Handle aborted message publish
cel committed on 1/12/2018, 9:19:24 PMParent: c60914528e52e15a04533da8eabea5c7f8f282d3
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -823,9 +823,9 @@ | ||
823 | 823 | |
824 | 824 | Req.prototype.publishPkgs = function (mentions) { |
825 | 825 | var self = this |
826 | 826 | 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) | |
828 | 828 | self.server.pushBlobs(self.blobsToPush, function (err) { |
829 | 829 | if (err) console.error('[npm-registry] Failed to push blob ' + id + ': ' + (err.stack || err)) |
830 | 830 | self.respond(201) |
831 | 831 | console.log(msgs.map(function (msg) { return msg.key }).join('\n')) |
Built with git-ssb-web