89luca89 / 89luca89/distrobox

[Suggestion] improved error messages on enter

Đang mở
#1,678 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Go
Star
13k
Fork
541
Merge trung bình
20 giờ 47 phút
Pull request đã merge (30 ngày)
4

Mô tả

**Describe the bug**
I introduced a typo in `additional_packages`. However, on `enter`, the only message is:
```
Starting container... [ OK ]
Installing basic packages... Error: An error occurred
```

**To Reproduce**
Error in package name:
`additional_packages="python-ipykernel ptyhon-devel gcc-c++ clang"`

container based on `fedora-toolbox` by way of `quay.io/langdon/langdon-toolbox`

**Expected behavior**
A more detailed error message like:
```
Repositories loaded.
Failed to resolve the transaction:
Package "python3-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-pip-24.2-1.fc41.noarch" is already installed.
Package "code-1.96.4-1736991167.el8.x86_64" is already installed.
No match for argument: ptyhon-devel
You can try to add to command line:
--skip-unavailable to skip unavailable packages
+ '[' 1 -ne 0 ']'
+ printf 'Error: An error occurred\n'
```

**Logs**
Run the commands with `--verbose` and post the log here as a file upload
Attach also the output of `podman logs` or `docker logs`, possibly with `--latest` flag

[ds100-box.log](https://github.com/user-attachments/files/18651539/ds100-box.log)

i can reproduce the error and get the podman logs if you think it would be useful but it would be some effort.

**Desktop (please complete the following information):**
- Are you using podman, docker or lilipod? -- podman
- Which version or podman, docker or lilipod?
```
podman --version
podman version 5.3.2
```
- Which version of distrobox?
```
distrobox --version
distrobox: 1.8.0
```
- Which host distribution?
Fedora 41
- How did you install distrobox? -- Fedora repos

**Additional context**
Add any other context about the problem here.

Arguably an enhancement but I had to do a bunch of work to figure out a minor issue.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.