File tree 4 files changed +4
-4
lines changed
scalatest/src/main/scala/org/scalatest
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ trait AppendedClues {
158
158
}
159
159
}
160
160
catch {
161
- case e : ModifiableMessage [_] =>
161
+ case e : ModifiableMessage [_] with Throwable =>
162
162
if (clue.toString != " " )
163
163
throw e.modifyMessage(append)
164
164
else
Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ trait Assertions extends TripleEquals {
1171
1171
}
1172
1172
}
1173
1173
catch {
1174
- case e : org.scalatest.exceptions.ModifiableMessage [_] =>
1174
+ case e : org.scalatest.exceptions.ModifiableMessage [_] with Throwable =>
1175
1175
if (clue != " " )
1176
1176
throw e.modifyMessage(prepend)
1177
1177
else
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ trait Checkpoints {
136
136
case e : TestRegistrationClosedException => throw e
137
137
case e : NotAllowedException => throw e
138
138
case e : DuplicateTestNameException => throw e
139
- case e : StackDepth => failures.add(e)
139
+ case e : StackDepth with Throwable => failures.add(e)
140
140
case e : Throwable => throw e
141
141
}
142
142
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ trait Payloads {
75
75
}
76
76
}
77
77
catch {
78
- case e : org.scalatest.exceptions.ModifiablePayload [_] =>
78
+ case e : org.scalatest.exceptions.ModifiablePayload [_] with Throwable =>
79
79
if (payload != null )
80
80
throw e.modifyPayload((currentPayload : Option [Any ]) => Some (payload))
81
81
else
You can’t perform that action at this time.
0 commit comments