diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-30 12:21:45 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-30 12:21:45 -0600 |
commit | ddb81ca126864dbf920472688bcd3a80c7a7e73b (patch) | |
tree | d8152008a1741eb4029cfd7f03618ad28eb6df93 /src/libutil/error.hh | |
parent | c484a67914fe16c4f2f6e7779baf4bdfe6405a22 (diff) | |
parent | ee1582494e458bf83535986b2a5bca32687420c5 (diff) |
Merge branch 'master' into add-trace
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r-- | src/libutil/error.hh | 6 |
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; } |