Skip to content

Commit

Permalink
Replace TODO URL with release tab for supported versions (sass#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored and xzyfer committed Apr 27, 2016
1 parent a405400 commit e232674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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');
};

Expand Down
2 changes: 1 addition & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit e232674

Please sign in to comment.