Skip to content

Commit 92e7720

Browse files
slashd0tdarinhoward
authored andcommitted
RT-4240 Fix the StringException error (#29)
1 parent 412e058 commit 92e7720

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/stackify/error.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def message
3131
end
3232

3333
def error_type
34-
@exception.class
34+
if @exception.class.to_s == 'StringException'
35+
@exception.message.split(" ")[0].to_s
36+
else
37+
@exception.class
38+
end
3539
end
3640

3741
def to_h

0 commit comments

Comments
 (0)