aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-30 12:21:45 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-30 12:21:45 -0600
commitddb81ca126864dbf920472688bcd3a80c7a7e73b (patch)
treed8152008a1741eb4029cfd7f03618ad28eb6df93 /src/libutil/error.hh
parentc484a67914fe16c4f2f6e7779baf4bdfe6405a22 (diff)
parentee1582494e458bf83535986b2a5bca32687420c5 (diff)
Merge branch 'master' into add-trace
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r--src/libutil/error.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index a9da72b54..4e86666fe 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -82,7 +82,11 @@ struct ErrPos {
origin = pos.origin;
line = pos.line;
column = pos.column;
- file = pos.file;
+ // is file symbol null?
+ if (pos.file.set())
+ file = pos.file;
+ else
+ file = "";
return *this;
}