소스 검색

Intial support for R15 line numbers in errors

pull/46/head
Andrew Thompson 13 년 전
부모
커밋
68065c166b
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      src/error_logger_lager_h.erl

+ 7
- 0
src/error_logger_lager_h.erl 파일 보기

@ -250,6 +250,13 @@ format_mfa({M, F, A}) when is_list(A) ->
io_lib:format("~w:~w("++FmtStr++")", [M, F | Args]);
format_mfa({M, F, A}) when is_integer(A) ->
io_lib:format("~w:~w/~w", [M, F, A]);
format_mfa({M, F, A, Props}) when is_list(Props) ->
case {proplists:get_value(file, Props), proplists:get_value(line, Props)} of
{undefined, undefined} ->
format_mfa({M, F, A});
{File, Line} ->
[format_mfa({M, F, A}), io_lib:format(" (~s:~w)", [File, Line])]
end;
format_mfa(Other) ->
io_lib:format("~w", [Other]).

불러오는 중...
취소
저장