Skip to content

Suggestion from #3043.#3060

Merged
pstaabp merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/unarchive-course-id-from-archive-addition
Jul 14, 2026
Merged

Suggestion from #3043.#3060
pstaabp merged 1 commit into
openwebwork:WeBWorK-2.21from
drgrice1:bugfix/unarchive-course-id-from-archive-addition

Conversation

@drgrice1

Copy link
Copy Markdown
Member

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.

This is built on top of #3043 (and rebased onto the current WeBWorK-2.21 branch). I am making a new pull request so that we can merge this (and #3043) and move on.

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.
@drgrice1 drgrice1 force-pushed the bugfix/unarchive-course-id-from-archive-addition branch from f2fd663 to 757fc95 Compare July 14, 2026 21:57
@pstaabp pstaabp merged commit f781a16 into openwebwork:WeBWorK-2.21 Jul 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants