Fix all compiler warnings (#7992)
This commit is contained in:
@@ -145,6 +145,6 @@ raise(none, File, Kind, Message) ->
|
||||
raise({Line, _, _}, File, Kind, Message) when is_integer(Line) ->
|
||||
raise(Line, File, Kind, Message);
|
||||
raise(Line, File, Kind, Message) when is_integer(Line), is_binary(File), is_binary(Message) ->
|
||||
Stacktrace = try throw(ok) catch ok -> erlang:get_stacktrace() end,
|
||||
Stacktrace = try throw(ok) catch ?WITH_STACKTRACE(_, _, Stack) Stack end,
|
||||
Exception = Kind:exception([{description, Message}, {file, File}, {line, Line}]),
|
||||
erlang:raise(error, Exception, tl(Stacktrace)).
|
||||
|
||||
Reference in New Issue
Block a user