summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2013-01-17 12:36:17 -0800
committerJohn Wiegley <johnw@newartisans.com>2013-01-17 12:36:17 -0800
commit83bd3234d32d7a82d583e4f50f8f90837aa15a93 (patch)
tree3690c573e3c02dad77874a3e76c32344f5eb0be6 /src/error.cc
parent74a1f63efbb5703e417e05466aca2ae51268862e (diff)
parent3fe2ef59566ef679d9de58e5f9454b7443d9153a (diff)
downloadfork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.gz
fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.tar.bz2
fork-ledger-83bd3234d32d7a82d583e4f50f8f90837aa15a93.zip
Merge pull request #123 from kljohann/bug.788
change handling of standard input
Diffstat (limited to 'src/error.cc')
-rw-r--r--src/error.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.cc b/src/error.cc
index 58339db7..8aa1d3d6 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -84,7 +84,7 @@ string source_context(const path& file,
const string& prefix)
{
const std::streamoff len = end_pos - pos;
- if (! len || file == path("/dev/stdin"))
+ if (! len || file.empty())
return _("<no source context>");
assert(len > 0);