Skip to content

Add friendly messages for the remaining namespace errors - #84

Merged
jhuntwork merged 1 commit into
mainfrom
add-namespace-error-messages
Nov 3, 2026
Merged

jhuntwork merged 1 commit into
mainfrom
add-namespace-error-messages

Conversation

@jhuntwork

Copy link
Copy Markdown
Owner

Thirteen namespace errors had no entry in getUserFriendlyMessage and
printed "unknown error": UserNamespacesDisabled, OverlayFsUnavailable,
ProfileNotFound, WorkspaceNotFound, MountPrivateError, MountTmpfsError,
MountProcError, MountOverlayError, ChrootError, SetuidError, ExecError,
ForkError and MknodError. Running a command that is not in the profile
printed "unknown error" ahead of the detail that explained it.

Give each one a message that names what failed. Add a test that walks every
EnvError and fails if one still maps to "unknown error", so a new error
cannot be added without a message.

Thirteen namespace errors had no entry in getUserFriendlyMessage and
printed "unknown error": UserNamespacesDisabled, OverlayFsUnavailable,
ProfileNotFound, WorkspaceNotFound, MountPrivateError, MountTmpfsError,
MountProcError, MountOverlayError, ChrootError, SetuidError, ExecError,
ForkError and MknodError. Running a command that is not in the profile
printed "unknown error" ahead of the detail that explained it.

Give each one a message that names what failed. Add a test that walks every
EnvError and fails if one still maps to "unknown error", so a new error
cannot be added without a message.
@jhuntwork
jhuntwork merged commit 76afe60 into main Nov 3, 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.

1 participant