diff options
author | Siri Hansen <[email protected]> | 2017-10-17 15:26:49 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-10-17 15:40:02 +0200 |
commit | 6c92cd8360fcacd85a8edd1cdb3fbfa307a1743f (patch) | |
tree | 9470a755abc5d7b8ab29439ac255f7042a8d30fe /lib/sasl/src | |
parent | addb7f717be0d93eb1d8ed3942763af37fe50af9 (diff) | |
download | otp-6c92cd8360fcacd85a8edd1cdb3fbfa307a1743f.tar.gz otp-6c92cd8360fcacd85a8edd1cdb3fbfa307a1743f.tar.bz2 otp-6c92cd8360fcacd85a8edd1cdb3fbfa307a1743f.zip |
[rb] Don't fail for unexpected type of report
rb would fail to show an error_logger report which was not a
list. This is now corrected and any term is allowed (as specified in
the error_logger reference manual).
Diffstat (limited to 'lib/sasl/src')
-rw-r--r-- | lib/sasl/src/format_lib_supp.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sasl/src/format_lib_supp.erl b/lib/sasl/src/format_lib_supp.erl index 80dcdc91da..00ce1b4e33 100644 --- a/lib/sasl/src/format_lib_supp.erl +++ b/lib/sasl/src/format_lib_supp.erl @@ -86,8 +86,10 @@ print_data(Device, Line, [{Key, Value}|T]) -> print_data(Device, Line, [Value|T]) -> Modifier = misc_supp:modifier(Device), io:format(Device, "~"++Modifier++"p~n", [Value]), - print_data(Device, Line, T). - + print_data(Device, Line, T); +print_data(Device, _Line, Value) -> + Modifier = misc_supp:modifier(Device), + io:format(Device, "~"++Modifier++"p~n", [Value]). print_items(Device, Line, {Name, Items}) -> print_items(Device, Line, Name, Items). |