Skip to content

Commit

Permalink
Fix exec pipe output
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jun 7, 2024
1 parent 0667683 commit 0395696
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ func handlePipe(_ string, cmd *exec.Cmd, query url.Values) (core.Producer, error
prod, err := magic.Open(r)
if err != nil {
_ = r.Close()
return nil, fmt.Errorf("exec/pipe: %w\n%s", err, cmd.Stderr)
}

log.Debug().Stringer("launch", time.Since(ts)).Msg("[exec] run pipe")

return prod, fmt.Errorf("exec/pipe: %w\n%s", err, cmd.Stderr)
return prod, nil
}

func handleRTSP(url string, cmd *exec.Cmd, path string) (core.Producer, error) {
Expand Down

0 comments on commit 0395696

Please sign in to comment.