Skip to content

Commit dc9c995

Browse files
committed
Keep the message the same as :enoent for Windows compat
1 parent ff1046a commit dc9c995

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/iex/lib/iex/helpers.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ defmodule IEx.Helpers do
10841084
if File.exists?(path) do
10851085
IO.puts(IEx.color(:eval_info, Path.absname(path)))
10861086
else
1087-
IO.puts(IEx.color(:eval_error, "Not a directory #{path}"))
1087+
IO.puts(IEx.color(:eval_error, "No such file or directory #{path}"))
10881088
end
10891089

10901090
{:error, reason} ->

lib/iex/test/iex/helpers_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ defmodule IEx.HelpersTest do
12191219
path = Path.join("mix.exs", "foo")
12201220

12211221
assert capture_io(fn -> ls(path) end) ==
1222-
"Not a directory #{path}\n"
1222+
"No such file or directory #{path}\n"
12231223
end)
12241224
end
12251225
end

0 commit comments

Comments
 (0)