container icon indicating copy to clipboard operation
container copied to clipboard

[Bug]: Improve the error message a user gets when they didn't run `system start` prior to running a container

Open dkovba opened this issue 1 year ago • 1 comments

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

  1. Run bin/container system stop
  2. 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

dkovba avatar Jun 28 '25 00:06 dkovba

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`."

jglogan avatar Oct 06 '25 17:10 jglogan