Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit c06402f

Browse files
author
Aaron Leung
committed
Merge pull request #74 from bitc/gnu_errorformat
Use the GNU error format for more seamless integration with editors
2 parents ab4fe42 + e9b8873 commit c06402f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sass_interface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern "C" {
7676
}
7777
catch (Error& e) {
7878
stringstream msg_stream;
79-
msg_stream << "ERROR -- " << e.path << ":" << e.line << ": " << e.message << endl;
79+
msg_stream << e.path << ":" << e.line << ": error: " << e.message << endl;
8080
string msg(msg_stream.str());
8181
char* msg_str = (char*) malloc(msg.size() + 1);
8282
strcpy(msg_str, msg.c_str());
@@ -86,7 +86,7 @@ extern "C" {
8686
}
8787
catch(bad_alloc& ba) {
8888
stringstream msg_stream;
89-
msg_stream << "ERROR -- unable to allocate memory: " << ba.what() << endl;
89+
msg_stream << "Unable to allocate memory: " << ba.what() << endl;
9090
string msg(msg_stream.str());
9191
char* msg_str = (char*) malloc(msg.size() + 1);
9292
strcpy(msg_str, msg.c_str());
@@ -116,7 +116,7 @@ extern "C" {
116116
}
117117
catch (Error& e) {
118118
stringstream msg_stream;
119-
msg_stream << "ERROR -- " << e.path << ":" << e.line << ": " << e.message << endl;
119+
msg_stream << e.path << ":" << e.line << ": error: " << e.message << endl;
120120
string msg(msg_stream.str());
121121
char* msg_str = (char*) malloc(msg.size() + 1);
122122
strcpy(msg_str, msg.c_str());
@@ -126,7 +126,7 @@ extern "C" {
126126
}
127127
catch(bad_alloc& ba) {
128128
stringstream msg_stream;
129-
msg_stream << "ERROR -- unable to allocate memory: " << ba.what() << endl;
129+
msg_stream << "Unable to allocate memory: " << ba.what() << endl;
130130
string msg(msg_stream.str());
131131
char* msg_str = (char*) malloc(msg.size() + 1);
132132
strcpy(msg_str, msg.c_str());

0 commit comments

Comments
 (0)