From 32a67801e5e4921ca91d84c526ee3fc382516ed3 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 7 Dec 2014 16:27:31 -0800 Subject: [PATCH 1/2] Include correct path in error message --- tasks/generate-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/generate-info.js b/tasks/generate-info.js index bf3ef4357e..acad5e65f2 100644 --- a/tasks/generate-info.js +++ b/tasks/generate-info.js @@ -58,7 +58,7 @@ function getNewerExterns(date, callback) { next(); }); walker.on('errors', function() { - callback(new Error('Trouble walking ' + sourceDir)); + callback(new Error('Trouble walking ' + externsDir)); }); walker.on('end', function() { callback(null, date, newer); From 4c504ede74b8b92337fd2fec527f1fa1d106931b Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 7 Dec 2014 16:35:58 -0800 Subject: [PATCH 2/2] Doc fix regarding externs --- tasks/generate-info.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/generate-info.js b/tasks/generate-info.js index acad5e65f2..d79bb67eee 100644 --- a/tasks/generate-info.js +++ b/tasks/generate-info.js @@ -39,11 +39,11 @@ function getInfoTime(callback) { /** - * Test whether externs/olx.js is newer than the provided date. + * Test whether any externs are newer than the provided date. * @param {Date} date Modification time of info file. * @param {function(Error, Date, boolen)} callback Called with any * error, the mtime of the info file (zero date if it doesn't exist), and - * whether externs/olx.js is newer than that date. + * whether any externs are newer than that date. */ function getNewerExterns(date, callback) { var newer = false; @@ -70,7 +70,7 @@ function getNewerExterns(date, callback) { * Generate a list of all .js paths in the source directory if any are newer * than the provided date. * @param {Date} date Modification time of info file. - * @param {boolean} newer Whether externs/olx.js is newer than date. + * @param {boolean} newer Whether any externs are newer than date. * @param {function(Error, Array.)} callback Called with any * error and the array of source paths (empty if none newer). */