Commit 2b945a09 by Aaron Leung

Simplifying the @warn emitter.

parent 7766c732
...@@ -134,6 +134,7 @@ namespace Sass { ...@@ -134,6 +134,7 @@ namespace Sass {
textual_hex, textual_hex,
color_name, color_name,
string_constant, string_constant,
concatenation,
number, number,
numeric_percentage, numeric_percentage,
numeric_dimension, numeric_dimension,
......
...@@ -332,11 +332,10 @@ namespace Sass { ...@@ -332,11 +332,10 @@ namespace Sass {
if (contents.type() == string_constant || contents.type() == string_schema) { if (contents.type() == string_constant || contents.type() == string_schema) {
result = result.substr(1, result.size()-2); // unquote if it's a single string result = result.substr(1, result.size()-2); // unquote if it's a single string
} }
stringstream ss; // These cerrs aren't log lines! They're supposed to be here!
ss << prefix << result << endl; cerr << prefix << result << endl;
ss << indent << "on line " << at(0).line() << " of " << at(0).path(); cerr << indent << "on line " << at(0).line() << " of " << at(0).path();
ss << endl << endl; cerr << endl << endl;
cerr << ss.str();
return ""; return "";
} break; } break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment