Ошибка при остуствии curl #1

Closed
opened 2025-11-11 09:35:22 +00:00 by private-user · 1 comment
Owner

Не обрабатывается ошибка при остуствии curl:

Наблюдаемое поведение:

# dm-cli  --address https://testnet-dm.bitdeals.org account status mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC
sh: 1: curl: not found
terminate called after throwing an instance of 'nlohmann::detail::parse_error'
  what():  [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
Aborted

Должно быть:
ошибка отсутствия curl должна обрабатываться и иметь штатное сообщение об ошибке:

sh: 1: curl: not found
Не обрабатывается ошибка при остуствии curl: Наблюдаемое поведение: ``` # dm-cli --address https://testnet-dm.bitdeals.org account status mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC sh: 1: curl: not found terminate called after throwing an instance of 'nlohmann::detail::parse_error' what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal Aborted ``` Должно быть: ошибка отсутствия curl должна обрабатываться и иметь штатное сообщение об ошибке: ``` sh: 1: curl: not found ```
private-user added the bug label 2025-11-11 09:35:22 +00:00
FD referenced this issue from a commit 2025-11-11 11:04:17 +00:00
Collaborator

Добавил проверку на наличие curl в ситеме

Добавил проверку на наличие curl в ситеме
FD closed this issue 2025-11-11 11:04:54 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: private/dm-cli#1