Skip to content

Report when package dir doesn't exist instead of silently raising ENOENT#18

Merged
melsman merged 1 commit into
diku-dk:masterfrom
pzel:handle-filesys-isdir
Jun 16, 2026
Merged

Report when package dir doesn't exist instead of silently raising ENOENT#18
melsman merged 1 commit into
diku-dk:masterfrom
pzel:handle-filesys-isdir

Conversation

@pzel

@pzel pzel commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Currently doCheck fails with an unhandled SysErr (ENOENT) when the package dir does not exist in lib. This is confusing as there is no user-facing information about what's going on. I figured this out by printf-debugging.

By replacing Os.FileSys.isDir with the non-raising System.doesDirExist, the issue is solved and the error is printed out nicely for the user.

@melsman melsman merged commit 2cc1cb5 into diku-dk:master Jun 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants