summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 42600db3..2f64bb0a 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -50,8 +50,8 @@ void debug_assert(const string& reason,
std::size_t line)
{
std::ostringstream buf;
- buf << "Assertion failed in \"" << file << "\", line " << line
- << ": " << func << ": " << reason;
+ buf << "Assertion failed in " << file_context(file, line)
+ << func << ": " << reason;
throw assertion_failed(buf.str());
}