Quellcode durchsuchen

测试添加

master
SisMaker vor 4 Jahren
Ursprung
Commit
8233b4d3e6
1 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  1. +8
    -1
      src/testCase/utTryCatchCase.erl

+ 8
- 1
src/testCase/utTryCatchCase.erl Datei anzeigen

@ -238,7 +238,14 @@ testTryCatch2(Type, TestLoop) ->
Type:Reason:Strace ->
case TestLoop of
true -> Strace;
false -> io:format("try .. catch block caught exception of ~p: ~p: ~p:~n", [Type, Reason, Strace])
false ->
S1 = utParseStack:parseStack(Strace),
S2 = utParseStack:parseStack(element(2, erlang:process_info(self(), current_stacktrace))),
io:format(S1),
io:format(S2),
io:format("try .. catch block caught exception of ~p: ~p: ~n ~s:~n", [Type, Reason, io_lib:format(S1, [])]),
io:format("try .. catch block caught exception of ~p: ~p: ~n ~s:~n", [Type, Reason, io_lib:format(S2, [])])
end
end.

Laden…
Abbrechen
Speichern