If an error occurred in /dev/stdin, don't fopen it
This commit is contained in:
parent
c49b98fc4c
commit
501949a364
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ string source_context(const path& file,
|
||||||
const string& prefix)
|
const string& prefix)
|
||||||
{
|
{
|
||||||
std::size_t len = end_pos - pos;
|
std::size_t len = end_pos - pos;
|
||||||
if (! len)
|
if (! len || file == path("/dev/stdin"))
|
||||||
return _("<no source context>");
|
return _("<no source context>");
|
||||||
|
|
||||||
assert(len > 0);
|
assert(len > 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue