container
container copied to clipboard
[Bug]: Improve the error message a user gets when they didn't run `system start` prior to running a container
I have done the following
- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
- Run
bin/container system stop - Run
bin/container run -it --rm alpine:latest date
Current behavior
The error message has up to six nested levels (see :), three levels of nested quotes (see "), and a quote that doesn't start in the same line (see '." in the end).
Error: interrupted: "internalError: "failed to start container" (cause: "interrupted: "XPC connection error: Connection interrupted"")
Ensure container system service has been started with `container system start`."
Expected behavior
The error message should have a better readability.
Environment
- OS: macOS 26 beta
- Xcode: 26 beta
- Container: container CLI version 9eb2f86 (build: debug, commit: 9eb2f86)
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Not sure when this changed, but the output now is:
% container run -it --rm alpine:latest date
Error: interrupted: "interrupted: "XPC connection error: Connection invalid"
Ensure container system service has been started with `container system start`."