diff options
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; } |