diff options
Diffstat (limited to 'src/span.cpp')
-rw-r--r-- | src/span.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/span.cpp b/src/span.cpp index b720b263..8a60b07a 100644 --- a/src/span.cpp +++ b/src/span.cpp @@ -45,13 +45,13 @@ void Span::bug(::std::function<void(::std::ostream&)> msg) const } void Span::error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) const { - ::std::cerr << this->filename << ":" << this->start_line << ": error:"; + ::std::cerr << this->filename << ":" << this->start_line << ": error:" << tag <<":"; msg(::std::cerr); ::std::cerr << ::std::endl; abort(); } void Span::warning(WarningType tag, ::std::function<void(::std::ostream&)> msg) const { - ::std::cerr << this->filename << ":" << this->start_line << ": warning:"; + ::std::cerr << this->filename << ":" << this->start_line << ": warning:" << tag << ":"; msg(::std::cerr); ::std::cerr << ::std::endl; //abort(); |