From 01f2187830617e61383c2a9a4af137bade78da01 Mon Sep 17 00:00:00 2001 From: dead_horse Date: Wed, 16 Apr 2014 09:23:23 +0800 Subject: [PATCH] hotfix, close #319 --- controllers/registry/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/registry/module.js b/controllers/registry/module.js index 29210cc30..bc11568d9 100644 --- a/controllers/registry/module.js +++ b/controllers/registry/module.js @@ -82,7 +82,7 @@ exports.show = function *(next) { return; } var result = yield SyncModuleWorker.sync(name, 'sync-by-install'); - this.status = result.ok ? 200 : result.statusCode; + this.status = result.ok ? 200 : (result.statusCode || 500); this.body = result.pkg; return; }