summaryrefslogtreecommitdiff
path: root/src/core/Exceptions.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-11-30 23:41:49 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-11-30 23:41:49 +0100
commit235b98e0d1a2e9e60c440076b5a11c8bf64ba071 (patch)
tree9aed0e0dfaef57da4bc4ac4df49a4eb0793c4994 /src/core/Exceptions.cpp
parent14b3a5c80ae0336de0d34d0d05fad6efc994462c (diff)
backup
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();
}
}