Skip to content
Browse files

Switch to just showing missing modules in comments

  • Loading branch information...
1 parent 9915fd8 commit d1226aadb99456d2611f2006499092f6664c284a @kriszyp committed Jul 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jsgi/transporter.js
View
4 lib/jsgi/transporter.js
@@ -111,11 +111,11 @@ exports.Transporter = function(options, app) {
var fileContents = loader(moduleName + ".js");
}
catch(e){
- errors.push('console.warn(' + JSON.stringify(moduleName) + ' + " could not be loaded: " + ' + JSON.stringify(e.message) + ');\n');
+ errors.push("/* Warning: " + (moduleName + " could not be loaded: " + e.message).replace(/\*/g,"") + "*/");
return;
}
if(!fileContents && write){
- errors.push('console.warn(' + JSON.stringify(moduleName) + ' + " not found");\n');
+ errors.push("/* Warning: " + (moduleName + " not found").replace(/\*/g,"") + "*/");
return;
}
if(moduleName === "require"){

0 comments on commit d1226aa

Please sign in to comment.
Something went wrong with that request. Please try again.