Skip to content

Commit 0cb936a

Browse files
committed
Make import_file raise ArgumentError
1 parent 328541b commit 0cb936a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iex/lib/iex/helpers.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,6 @@ defmodule IEx.Helpers do
396396
end
397397

398398
defmacro import_file(_) do
399-
raise "import_file/1 expects a literal binary as its argument"
399+
raise ArgumentError, message: "import_file/1 expects a literal binary as its argument"
400400
end
401401
end

0 commit comments

Comments
 (0)