Skip to content

Commit

Permalink
hotfix, close #319
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse committed Apr 16, 2014
1 parent c2f49fc commit 01f2187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/registry/module.js
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 01f2187

Please sign in to comment.