aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/gen_statem.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-02-19 15:36:13 +0100
committerRaimo Niskanen <[email protected]>2016-02-19 15:36:13 +0100
commit867c27c5b03c846aef1e5fe4b3ee63de5f3a7f32 (patch)
tree141acfa879c41b06225ecb017c0591552eb9f12c /lib/stdlib/src/gen_statem.erl
parent898e66f07dce8b7b33874255bb3ea1c6f5534d34 (diff)
downloadotp-867c27c5b03c846aef1e5fe4b3ee63de5f3a7f32.tar.gz
otp-867c27c5b03c846aef1e5fe4b3ee63de5f3a7f32.tar.bz2
otp-867c27c5b03c846aef1e5fe4b3ee63de5f3a7f32.zip
Hide Data in default format_status/2 if callback crashes
Diffstat (limited to 'lib/stdlib/src/gen_statem.erl')
-rw-r--r--lib/stdlib/src/gen_statem.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index 1ca2e1009c..b580eaab97 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -1214,7 +1214,9 @@ format_status(
catch
Result -> Result;
_:_ ->
- format_status_default(Opt, State, Data)
+ format_status_default(
+ Opt, State,
+ "Module:format_status/2 crashed")
end;
false ->
format_status_default(Opt, State, Data)