diff --git a/lib/errors.js b/lib/errors.js index 296289dcf..9380659f1 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -2,7 +2,8 @@ * node-sass: lib/errors.js */ -var sass = require('./extensions'); +var sass = require('./extensions'), + pkg = require('../package.json'); function humanEnvironment() { return sass.getHumanEnvironment(sass.getBinaryName()); @@ -32,7 +33,7 @@ module.exports.unsupportedEnvironment = function() { return [ 'Node Sass does not yet support your current environment: ' + humanEnvironment(), 'For more information on which environments are supported please see:', - 'TODO URL' + 'https://github.com/sass/node-sass/releases/tag/v' + pkg.version ].join('\n'); }; diff --git a/test/errors.js b/test/errors.js index f922c0632..c4b155281 100644 --- a/test/errors.js +++ b/test/errors.js @@ -34,7 +34,7 @@ describe('binary errors', function() { it('links to supported environment documentation', function() { var message = errors.unsupportedEnvironment(); - assert.ok(message.indexOf('TODO URL') !== -1); + assert.ok(message.indexOf('https://github.com/sass/node-sass/releases/tag/v') !== -1); }); });