Default error handler prints to stderr, as it probably should have from the beginning
This commit is contained in:
parent
2b5fecfbcb
commit
7ebaa5ef8a
2
ctags.d
2
ctags.d
|
@ -26,7 +26,7 @@ void printCtags(File output, string[] fileNames)
|
|||
f.rawRead(bytes);
|
||||
LexerConfig config;
|
||||
auto tokens = byToken(bytes, config);
|
||||
Module m = parseModule(tokens.array(), fileName, &doNothing);
|
||||
Module m = parseModule(tokens.array(), fileName);
|
||||
auto printer = new CTagsPrinter;
|
||||
printer.fileName = fileName;
|
||||
printer.visit(m);
|
||||
|
|
|
@ -6240,7 +6240,7 @@ private:
|
|||
auto column = index < tokens.length ? tokens[index].column : 0;
|
||||
auto line = index < tokens.length ? tokens[index].line : 0;
|
||||
if (messageFunction is null)
|
||||
writefln("%s(%d:%d)[warn]: %s", fileName, line, column, message);
|
||||
stderr.writefln("%s(%d:%d)[warn]: %s", fileName, line, column, message);
|
||||
else
|
||||
messageFunction(fileName, line, column, message);
|
||||
}
|
||||
|
@ -6255,7 +6255,7 @@ private:
|
|||
auto line = index < tokens.length ? tokens[index].line : tokens[$ - 1].line;
|
||||
if (messageFunction is null)
|
||||
{
|
||||
writefln("%s(%d:%d)[error]: %s", fileName, line, column, message);
|
||||
stderr.writefln("%s(%d:%d)[error]: %s", fileName, line, column, message);
|
||||
}
|
||||
else
|
||||
messageFunction(fileName, line, column, message);
|
||||
|
|
Loading…
Reference in New Issue