summaryrefslogtreecommitdiff
path: root/src/error-handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/error-handler.cc')
-rw-r--r--src/error-handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error-handler.cc b/src/error-handler.cc
index 693c76d1..da61230e 100644
--- a/src/error-handler.cc
+++ b/src/error-handler.cc
@@ -34,8 +34,8 @@ std::string ErrorHandler::DefaultErrorMessage(const Color& color,
result += color.MaybeBoldCode();
- if (loc.filename) {
- result += loc.filename;
+ if (!loc.filename.empty()) {
+ result += loc.filename.to_string();
result += ":";
}