error condition not properly documented for Porcelain.spawn
Đang mở
- Ngôn ngữ chính
- Elixir
- Star
- 958
- Fork
- 45
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
For some cases, Porcelain.spawn returns data of structure `{:error, }`. E.g:
```elixir
iex(23)> Porcelain.spawn("whoami2", [])
{:error, "Command not found: whoami2"}
```
But the spec doesn't capture it:
```elixir
@spec spawn(binary, [binary]) :: Porcelain.Process.t
@spec spawn(binary, [binary], Keyword.t) :: Porcelain.Process.t
def spawn(prog, args, options \\ [])
```
leading to little annoyances like warning messages about pattern matching with the error msg type.
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
Đánh giá
Issue này chưa được đánh giá.