summaryrefslogtreecommitdiff
path: root/src/error.cc
diff options
context:
space:
mode:
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 5a45318f..653980b4 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -83,7 +83,7 @@ string source_context(const path& file,
const string& prefix)
{
std::size_t len = end_pos - pos;
- if (! len)
+ if (! len || file == path("/dev/stdin"))
return _("<no source context>");
assert(len > 0);