Commit 7020dd3
committed
STM: Print commands that trigger uncaught exceptions
The standard QCheck mechanism to catch exceptions that are raised in
tests do not give much clue about the source (ie STM command) of that
exception
This packs the unsoundly-specified command with the exception in such a
case so that it can be displayed
Before:
```
exception Failure("unexpected")
```
After:
```
exception Failure("unexpected") raised but not caught while running AlwaysFail ()
```1 parent b340e7f commit 7020dd3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments