Skip to content

Commit eb0e126

Browse files
fix errors
1 parent af3463a commit eb0e126

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/ecto/adapters/myxql.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,16 @@ defmodule Ecto.Adapters.MyXQL do
555555
if Path.type(cmd) == :absolute do
556556
cmd
557557
else
558-
:os.find_executable(cmd) || :erlang.error(:enoent, [command, args, cmd_opts])
558+
:os.find_executable(cmd) || :erlang.error(:enoent, [cmd, args, cmd_opts])
559559
end
560560

561561
port_opts = port_opts(cmd_opts, [args: args])
562562
port = Port.open({:spawn_executable, cmd}, port_opts)
563-
Port.command(port, content)
563+
Port.command(port, contents)
564+
565+
{initial, fun} = Collectable.into("")
564566

565567
try do
566-
{initial, fun} = Collectable.into("")
567568
do_port_byte(port, initial, fun)
568569
catch
569570
kind, reason ->

0 commit comments

Comments
 (0)