3
3
*/
4
4
5
5
var sass = require ( './extensions' ) ,
6
- Constants = require ( './constants' ) ,
7
6
pkg = require ( '../package.json' ) ;
8
7
9
- function humanEnvironment ( ) {
10
- return sass . getHumanEnvironment ( sass . getBinaryName ( Constants . DefaultOptions ) ) ;
8
+ function humanEnvironment ( options ) {
9
+ return sass . getHumanEnvironment ( sass . getBinaryName ( options ) ) ;
11
10
}
12
11
13
12
function foundBinaries ( ) {
@@ -30,18 +29,18 @@ function missingBinaryFooter() {
30
29
] . join ( '\n' ) ;
31
30
}
32
31
33
- module . exports . unsupportedEnvironment = function ( ) {
32
+ module . exports . unsupportedEnvironment = function ( options ) {
34
33
return [
35
- 'Node Sass does not yet support your current environment: ' + humanEnvironment ( ) ,
34
+ 'Node Sass does not yet support your current environment: ' + humanEnvironment ( options ) ,
36
35
'For more information on which environments are supported please see:' ,
37
36
'https://github.com/sass/node-sass/releases/tag/v' + pkg . version
38
37
] . join ( '\n' ) ;
39
38
} ;
40
39
41
- module . exports . missingBinary = function ( ) {
40
+ module . exports . missingBinary = function ( options ) {
42
41
return [
43
- 'Missing binding ' + sass . getBinaryPath ( ) ,
44
- 'Node Sass could not find a binding for your current environment: ' + humanEnvironment ( ) ,
42
+ 'Missing binding ' + sass . getBinaryPath ( options ) ,
43
+ 'Node Sass could not find a binding for your current environment: ' + humanEnvironment ( options ) ,
45
44
'' ,
46
45
foundBinaries ( ) ,
47
46
'' ,
0 commit comments