diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-26 23:02:57 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-26 23:02:57 -0500 |
| commit | c59ce046a0ad468ac3f80c2d43ffa056772df7f1 (patch) | |
| tree | 4a350196d705cafca235ec608ba18575dcb9bce6 /src/os.cpp | |
| parent | 22dd0db9bf18e225799e8540ec27451fc48ea86e (diff) | |
| download | zig-c59ce046a0ad468ac3f80c2d43ffa056772df7f1.tar.gz zig-c59ce046a0ad468ac3f80c2d43ffa056772df7f1.zip | |
windows returns EINVAL for fopen when there is an asterisk in the name
closes #508
Diffstat (limited to 'src/os.cpp')
| -rw-r--r-- | src/os.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os.cpp b/src/os.cpp index f52325af00..732baea359 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -1099,7 +1099,7 @@ Error os_fetch_file_path(Buf *full_path, Buf *out_contents, bool skip_shebang) { case EINTR: return ErrorInterrupted; case EINVAL: - zig_unreachable(); + return ErrorInvalidFilename; case ENFILE: case ENOMEM: return ErrorSystemResources; |
