error condition not properly documented for Porcelain.spawn
Abierto
- Lenguaje dominante
- Elixir
- Estrellas
- 958
- Forks
- 45
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.