HelloZeroNet / HelloZeroNet/ZeroNet
No error message when configuration file does not exist - param config_file
- Ngôn ngữ chính
- JavaScript
- Star
- 18.8k
- Fork
- 2.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Step 1: Please describe your environment
* ZeroNet version: 0.7.1 r4214
* Operating system: Fedora 30 x64
* Web browser: Chromium
* Tor status: available
* Opened port: no
### Step 2: Describe the problem:
I tried to load configuration file (`--config_file` param) but I made typo in the file name. Instead of see error message ZeroNet client created new configuration file.
#### Steps to reproduce:
1. run `python3 zeronet.py --config_file file_does_not_exist.conf`
#### Observed Results:
ZeroNet client created new file `file_does_not_exist.conf` with content
```
[global]
fileserver_port = 24124
```
#### Expected Results:
I should see error message and ZeroNet should exit
```
Cannot load configuration file file_does_not_exist.conf. Exiting ...
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start with the --config_file argument handling exercised by `python3 zeronet.py --config_file file_does_not_exist.conf`. Reproduce the missing-file case and verify that it reports the expected error, exits, and does not create a new configuration file.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 35/100