Permalink
Browse files

Some slightly better debug info

  • Loading branch information...
1 parent 6c4096e commit 60e4c66be8c454815e9d23c74f81c4b9057cf2f5 @chriso chriso committed Nov 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/node.io/processor.js
View
@@ -299,7 +299,7 @@ Processor.prototype.loadJob = function (job, options, callback) {
//Now that require.paths has gone away we have to jump through hoops.
var tryPaths = [process.cwd() + '/', '']
- , notFound = new RegExp("Cannot find module '"+job+"'");
+ , notFound = /Cannot find/;
for (var jobPath, i = 0; i < tryPaths.length; i++) {
jobPath = tryPaths[i] + job;
@@ -309,7 +309,7 @@ Processor.prototype.loadJob = function (job, options, callback) {
return;
} catch (e) {
if (notFound.test(e.message)) {
- this.status('Failed to load require(\'' + jobPath + '\')', 'debug');
+ this.status('Failed to load require(\'' + jobPath + '\') - not found', 'debug');
} else {
this.status('Error: ' + e.message, 'debug');
this.status('Trace: ' + JSON.stringify(e), 'debug');

0 comments on commit 60e4c66

Please sign in to comment.