Commit 2f02e49b authored by Max Kellermann's avatar Max Kellermann

input/file: generate Error when errno==ENOENT

This special case was useless. Fixes the dreaded "Unrecognized URI" error message when a file does not exist.
parent 064e8a7c
......@@ -70,7 +70,7 @@ input_file_open(const char *filename,
const int fd = open_cloexec(filename, O_RDONLY|O_BINARY, 0);
if (fd < 0) {
if (errno != ENOENT && errno != ENOTDIR)
if (errno != ENOTDIR)
error.FormatErrno("Failed to open \"%s\"",
filename);
return nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment