Skip to content

Commit 0f6a1e4

Browse files
authored
Improve error messages for color functions that aren't in sass:color (#1482)
1 parent 82a8e4a commit 0f6a1e4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/core_functions/modules/color.hrx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Error: Undefined function.
315315
a {b: color.adjust-hue(#abcdef, 10)}
316316

317317
<===> error/adjust_hue/error
318-
Error: The function adjust-hue() isn't in the new module system.
318+
Error: The function adjust-hue() isn't in the sass:color module.
319319

320320
Recommendation: color.adjust(#abcdef, $hue: 10)
321321

@@ -333,7 +333,7 @@ More info: https://sass-lang.com/documentation/functions/color#adjust-hue
333333
a {b: color.lighten(#abcdef, 10%)}
334334

335335
<===> error/lighten/error
336-
Error: The function lighten() isn't in the new module system.
336+
Error: The function lighten() isn't in the sass:color module.
337337

338338
Recommendation: color.adjust(#abcdef, $lightness: 10%)
339339

@@ -351,7 +351,7 @@ More info: https://sass-lang.com/documentation/functions/color#lighten
351351
a {b: color.darken(#abcdef, 10%)}
352352

353353
<===> error/darken/error
354-
Error: The function darken() isn't in the new module system.
354+
Error: The function darken() isn't in the sass:color module.
355355

356356
Recommendation: color.adjust(#abcdef, $lightness: -10%)
357357

@@ -369,7 +369,7 @@ More info: https://sass-lang.com/documentation/functions/color#darken
369369
a {b: color.saturate(#abcdef, 10%)}
370370

371371
<===> error/saturate/error
372-
Error: The function saturate() isn't in the new module system.
372+
Error: The function saturate() isn't in the sass:color module.
373373

374374
Recommendation: color.adjust(#abcdef, $saturation: 10%)
375375

@@ -387,7 +387,7 @@ More info: https://sass-lang.com/documentation/functions/color#saturate
387387
a {b: color.desaturate(#abcdef, 10%)}
388388

389389
<===> error/desaturate/error
390-
Error: The function desaturate() isn't in the new module system.
390+
Error: The function desaturate() isn't in the sass:color module.
391391

392392
Recommendation: color.adjust(#abcdef, $saturation: -10%)
393393

@@ -405,7 +405,7 @@ More info: https://sass-lang.com/documentation/functions/color#desaturate
405405
a {b: color.opacify(#abcdef, 0.5)}
406406

407407
<===> error/opacify/error
408-
Error: The function opacify() isn't in the new module system.
408+
Error: The function opacify() isn't in the sass:color module.
409409

410410
Recommendation: color.adjust(#abcdef, $alpha: 0.5)
411411

@@ -423,7 +423,7 @@ More info: https://sass-lang.com/documentation/functions/color#opacify
423423
a {b: color.fade-in(#abcdef, 0.5)}
424424

425425
<===> error/fade_in/error
426-
Error: The function fade-in() isn't in the new module system.
426+
Error: The function fade-in() isn't in the sass:color module.
427427

428428
Recommendation: color.adjust(#abcdef, $alpha: 0.5)
429429

@@ -441,7 +441,7 @@ More info: https://sass-lang.com/documentation/functions/color#fade-in
441441
a {b: color.transparentize(#abcdef, 0.5)}
442442

443443
<===> error/transparentize/error
444-
Error: The function transparentize() isn't in the new module system.
444+
Error: The function transparentize() isn't in the sass:color module.
445445

446446
Recommendation: color.adjust(#abcdef, $alpha: -0.5)
447447

@@ -459,7 +459,7 @@ More info: https://sass-lang.com/documentation/functions/color#transparentize
459459
a {b: color.fade-out(#abcdef, 0.5)}
460460

461461
<===> error/fade_out/error
462-
Error: The function fade-out() isn't in the new module system.
462+
Error: The function fade-out() isn't in the sass:color module.
463463

464464
Recommendation: color.adjust(#abcdef, $alpha: -0.5)
465465

0 commit comments

Comments
 (0)