---
 src/sin_exceptions.erl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/sin_exceptions.erl b/src/sin_exceptions.erl
index 15b9774..b523608 100644
--- a/src/sin_exceptions.erl
+++ b/src/sin_exceptions.erl
@@ -26,7 +26,8 @@
 
 %% @doc a helper function to format sinan formated exceptions
 -spec format_exception(exception()) -> string().
-format_exception({pe, _, {Module, Line, {Reason, Description}}}) ->
+format_exception({pe, _, {Module, Line, {Reason, Description}}})
+  when is_list(Reason) ->
     io_lib:format("~s:~p [~p] ~s", [Module, Line, Reason, Description]);
 format_exception({pe, _, {Module, Line, Reason}}) ->
     io_lib:format("~s:~p [~p]", [Module, Line, Reason]).
-- 
1.7.5.2

-- 
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en.

Reply via email to