Skip to content

Commit a33859b

Browse files
committed
Make esp32_flash include stack trace in diagnostic mode
Changes error reporting for the esp32_flash task to include stack trace when rebar3 is executed with DIAGNOSTIC=1 or DEBUG=1. Signed-off-by: Winford <winford@object.stream>
1 parent faf93df commit a33859b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/atomvm_esp32_flash_provider.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ do(State) ->
8787
catch
8888
C:E:S ->
8989
rebar_api:error(
90-
"An error occurred in the ~p task. Class=~p Error=~p Stacktrace=~p~n", [
91-
?PROVIDER, C, E, S
92-
]
90+
"An error occurred in the ~p task. Error=~p",
91+
[?PROVIDER, E]
9392
),
93+
rebar_api:debug("Class=~p, Error=~p~nSTACKTRACE:~n~p~n", [C, E, S]),
9494
{error, E}
9595
end.
9696

0 commit comments

Comments
 (0)