Skip to content
Browse files

Merge branch 'master' of http://github.com/kriszyp/transporter

  • Loading branch information...
2 parents 68cbdff + d1226aa commit 4c9a1248104f9812ba8985b78b2dae5e5869975f @dvv dvv 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 4c9a124

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