diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04T19·14+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04T19·14+0200 |
commit | a5fe73094016973a50741db0c5d51ca96c14147b (patch) | |
tree | 28393198f2cd307db18ec160d7139b2e77077ddd /src/libexpr/nixexpr.cc | |
parent | 27b44b8cf7072b09a1929ee44ba784b1c8d5211a (diff) |
forceString: Show position info
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r-- | src/libexpr/nixexpr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index 92f46b30a370..d40250d8777d 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -145,7 +145,7 @@ void ExprPos::show(std::ostream & str) std::ostream & operator << (std::ostream & str, const Pos & pos) { - if (!pos.line) + if (!pos) str << "undefined position"; else str << (format("%1%:%2%:%3%") % pos.file % pos.line % pos.column).str(); |