Commit 2b945a09 by Aaron Leung

Simplifying the @warn emitter.

parent 7766c732
......@@ -134,6 +134,7 @@ namespace Sass {
textual_hex,
color_name,
string_constant,
concatenation,
number,
numeric_percentage,
numeric_dimension,
......
......@@ -332,11 +332,10 @@ namespace Sass {
if (contents.type() == string_constant || contents.type() == string_schema) {
result = result.substr(1, result.size()-2); // unquote if it's a single string
}
stringstream ss;
ss << prefix << result << endl;
ss << indent << "on line " << at(0).line() << " of " << at(0).path();
ss << endl << endl;
cerr << ss.str();
// These cerrs aren't log lines! They're supposed to be here!
cerr << prefix << result << endl;
cerr << indent << "on line " << at(0).line() << " of " << at(0).path();
cerr << endl << endl;
return "";
} 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