def f() =
  def on_error(e) =
    test.equal(e.kind, "ffmpeg")
    test.equal(
      e.message,
      "Avutil.Error(No such file or directory)"
    )
    let [..._, {filename}] = e.trace
    test.equal(filename, "src/core/io/ffmpeg_io.ml")
    test.pass()
  end

  output.dummy(input.ffmpeg(on_error=on_error, "invalid"), fallible=true)
end

test.check(f)
