@@ -685,7 +685,7 @@ namespace Sass {
685
685
bool hsl = h || s || l;
686
686
687
687
if (rgb && hsl) {
688
- error (" cannot specify both RGB and HSL values for `adjust-color` " , pstate);
688
+ error (" Cannot specify HSL and RGB values for a color at the same time for `adjust-color' " , pstate);
689
689
}
690
690
if (rgb) {
691
691
double rr = r ? ARGR (" $red" , Number, -255 , 255 )->value () : 0 ;
@@ -719,7 +719,7 @@ namespace Sass {
719
719
color->b (),
720
720
color->a () + (a ? a->value () : 0 ));
721
721
}
722
- error (" not enough arguments for `adjust-color` " , pstate);
722
+ error (" not enough arguments for `adjust-color' " , pstate);
723
723
// unreachable
724
724
return color;
725
725
}
@@ -740,7 +740,7 @@ namespace Sass {
740
740
bool hsl = h || s || l;
741
741
742
742
if (rgb && hsl) {
743
- error (" cannot specify both RGB and HSL values for `scale-color` " , pstate);
743
+ error (" Cannot specify HSL and RGB values for a color at the same time for `scale-color' " , pstate);
744
744
}
745
745
if (rgb) {
746
746
double rscale = (r ? ARGR (" $red" , Number, -100.0 , 100.0 )->value () : 0.0 ) / 100.0 ;
@@ -775,7 +775,7 @@ namespace Sass {
775
775
color->b (),
776
776
color->a () + ascale * (ascale > 0.0 ? 1.0 - color->a () : color->a ()));
777
777
}
778
- error (" not enough arguments for `scale-color` " , pstate);
778
+ error (" not enough arguments for `scale-color' " , pstate);
779
779
// unreachable
780
780
return color;
781
781
}
@@ -796,7 +796,7 @@ namespace Sass {
796
796
bool hsl = h || s || l;
797
797
798
798
if (rgb && hsl) {
799
- error (" cannot specify both RGB and HSL values for `change-color` " , pstate);
799
+ error (" Cannot specify HSL and RGB values for a color at the same time for `change-color' " , pstate);
800
800
}
801
801
if (rgb) {
802
802
return SASS_MEMORY_NEW (Color,
@@ -823,7 +823,7 @@ namespace Sass {
823
823
color->b (),
824
824
alpha);
825
825
}
826
- error (" not enough arguments for `change-color` " , pstate);
826
+ error (" not enough arguments for `change-color' " , pstate);
827
827
// unreachable
828
828
return color;
829
829
}
@@ -1184,13 +1184,13 @@ namespace Sass {
1184
1184
double v = l->value ();
1185
1185
if (v < 1 ) {
1186
1186
stringstream err;
1187
- err << " $limit " << v << " must be greater than or equal to 1 for `random` " ;
1187
+ err << " $limit " << v << " must be greater than or equal to 1 for `random' " ;
1188
1188
error (err.str (), pstate);
1189
1189
}
1190
1190
bool eq_int = std::fabs (trunc (v) - v) < NUMBER_EPSILON;
1191
1191
if (!eq_int) {
1192
1192
stringstream err;
1193
- err << " Expected $limit to be an integer but got ` " << v << " ` for `random` " ;
1193
+ err << " Expected $limit to be an integer but got " << v << " for `random' " ;
1194
1194
error (err.str (), pstate);
1195
1195
}
1196
1196
std::uniform_real_distribution<> distributor (1 , v + 1 );
@@ -1754,7 +1754,7 @@ namespace Sass {
1754
1754
1755
1755
// Not enough parameters
1756
1756
if ( arglist->length () == 0 )
1757
- error (" $selectors: At least one selector must be passed" , pstate);
1757
+ error (" $selectors: At least one selector must be passed for `selector-nest' " , pstate);
1758
1758
1759
1759
// Parse args into vector of selectors
1760
1760
std::vector<Selector_List_Obj> parsedSelectors;
@@ -1807,7 +1807,7 @@ namespace Sass {
1807
1807
1808
1808
// Not enough parameters
1809
1809
if ( arglist->length () == 0 )
1810
- error (" $selectors: At least one selector must be passed" , pstate);
1810
+ error (" $selectors: At least one selector must be passed for `selector-append' " , pstate);
1811
1811
1812
1812
// Parse args into vector of selectors
1813
1813
std::vector<Selector_List_Obj> parsedSelectors;
@@ -1856,22 +1856,22 @@ namespace Sass {
1856
1856
1857
1857
// Must be a simple sequence
1858
1858
if ( childSeq->combinator () != Complex_Selector::Combinator::ANCESTOR_OF ) {
1859
- std::string msg (" Can't append ` " );
1859
+ std::string msg (" Can't append \" " );
1860
1860
msg += childSeq->to_string ();
1861
- msg += " ` to ` " ;
1861
+ msg += " \" to \" " ;
1862
1862
msg += parentSeqClone->to_string ();
1863
- msg += " ` " ;
1863
+ msg += " \" for `selector-append' " ;
1864
1864
error (msg, pstate, backtrace);
1865
1865
}
1866
1866
1867
1867
// Cannot be a Universal selector
1868
1868
Element_Selector_Obj pType = SASS_MEMORY_CAST (Element_Selector, childSeq->head ()->first ());
1869
1869
if (pType && pType->name () == " *" ) {
1870
- std::string msg (" Can't append ` " );
1870
+ std::string msg (" Can't append \" " );
1871
1871
msg += childSeq->to_string ();
1872
- msg += " ` to ` " ;
1872
+ msg += " \" to \" " ;
1873
1873
msg += parentSeqClone->to_string ();
1874
- msg += " ` " ;
1874
+ msg += " \" for `selector-append' " ;
1875
1875
error (msg, pstate, backtrace);
1876
1876
}
1877
1877
0 commit comments