Commit f2fd663
committed
Suggestion from openwebwork#3043.
Wrap the `unarchiveCourse` call in the `do_unarchive_course` method of
the `WeBWorK::ContentGenerator::CourseAdmin` package in an `eval`, so
that exceptions are caught. The exceptions are already checked for on
the next line, but deal with the exception message better. Instead of
displaying `$@` which might include a backtrace, show `$@->message` in
the case that `$@` is an object.1 parent b55c0f4 commit f2fd663
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1208 | 1210 | | |
1209 | 1211 | | |
1210 | | - | |
1211 | 1212 | | |
1212 | 1213 | | |
1213 | 1214 | | |
1214 | 1215 | | |
1215 | 1216 | | |
1216 | 1217 | | |
1217 | 1218 | | |
1218 | | - | |
| 1219 | + | |
1219 | 1220 | | |
1220 | 1221 | | |
1221 | 1222 | | |
| |||
0 commit comments