Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #323 from cnpm/hot-fix-status
Browse files Browse the repository at this point in the history
hotfix, close #319
  • Loading branch information
fengmk2 committed Apr 16, 2014
2 parents 42055ac + 01f2187 commit afdf0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/registry/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit afdf0bc

Please sign in to comment.