Skip to content

Commit d92b2e6

Browse files
author
José Valim
committed
Avoid calling Kernel:raise from erl
1 parent 0a7f6e7 commit d92b2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/src/elixir_quote.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ validate_join(List) when not is_list(List) ->
7676
('Elixir.Kernel':inspect(List))/binary>>).
7777

7878
argument_error(Message) ->
79-
'Elixir.Kernel':raise('Elixir.ArgumentError', [{message,Message}]).
79+
error('Elixir.ArgumentError':exception([{message,Message}])).
8080

8181
%% Escapes the given expression. It is similar to quote, but
8282
%% lines are kept and hygiene mechanisms are disabled.

0 commit comments

Comments
 (0)