diff options
| author | Tetralux <tetralux@teknik.io> | 2020-10-09 05:40:43 +0100 |
|---|---|---|
| committer | Tetralux <tetralux@teknik.io> | 2020-10-09 05:56:12 +0100 |
| commit | dfac45942c488ee59b2b9a40fd682ead818465ba (patch) | |
| tree | 133ad046054d715306fba9e75dfe53a8d0354217 /src/check_type.cpp | |
| parent | 6eeb12a986318665b008ac107b039772b5eb2eb8 (diff) | |
Fix error message when importing package that does not exist
Previously on Linux, if a file in your program tried to import a
package that did not actually exist, read_directory() assumed that
the errno after calling opendir() was ENOTDIR.
This was incorrect.
Instead, we now switch on errno and check for ENOENT, which it is
if the directory does not exist.
Diffstat (limited to 'src/check_type.cpp')
0 files changed, 0 insertions, 0 deletions