summaryrefslogtreecommitdiff
path: root/src/core/Exceptions.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
commit41366eb61e5b85524b8ee07ae183df4f9f8a1f6d (patch)
treeac9468e4adc6cfcb63b4adc324770dc07de0e5aa /src/core/Exceptions.cpp
parent314e97ac5307f5053fc0c31ec23c39ba9c9a0aac (diff)
parented79df8f263dcd973c8ceb016b516644d87d8aa8 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/Exceptions.cpp')
-rw-r--r--src/core/Exceptions.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/Exceptions.cpp b/src/core/Exceptions.cpp
index 92d9293..735dac6 100644
--- a/src/core/Exceptions.cpp
+++ b/src/core/Exceptions.cpp
@@ -29,16 +29,17 @@ std::string LoggableException::formatMessage(const std::string &msg,
int column, bool fatal)
{
std::stringstream ss;
+ ss << "error ";
if (!file.empty()) {
ss << "while processing \"" << file << "\" ";
}
if (line >= 0) {
- ss << "at line: " << line << " ";
+ ss << "at line " << line << ", ";
if (column >= 0) {
- ss << "col: " << column << " ";
+ ss << "column " << column << " ";
}
}
- ss << "message: " << msg;
+ ss << "with message: " << msg;
return ss.str();
}
}