1. When the student has been assigned the set but it is before the open date. The student can still see "download a hardcopy" but when this is clicked there is an error.
2. When the student tries to generate a hardcopy when they don't select a set.
Both of these are understandable but it would certainly be better for the student to just be warned that they need to do something else.
Here is the error message for case number 2:
Warning messages
Error messages
argument 2 must contain a set_id at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm line 207
Call stack
The information below can help locate the source of the problem.
in Carp::croak called at line 2025 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::checkArgs called at line 1231 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::getMergedSet called at line 207 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
in WeBWorK::ContentGenerator::Hardcopy::pre_header_initialize called at line 176 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm