Skip to content

Commit

Permalink
fix typos and add some space for clarify.
Browse files Browse the repository at this point in the history
  • Loading branch information
pstaabp committed Jan 25, 2024
1 parent 96d4aca commit 130ba37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/HardcopyRenderedProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ sub generate_hardcopy_tex {

push(@$errors, qq{Failed to create zip archive of directory "$working_dir"})
unless ($zip->writeToFileNamed($working_dir->dirname->child('hardcopy.zip')->to_string) == AZ_OK);

return;
}

Expand Down
1 change: 1 addition & 0 deletions lib/WeBWorK/ContentGenerator/Hardcopy.pm
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ sub generate_hardcopy_tex ($c, $temp_dir_path, $final_file_basename) {
$c->add_error('Failed to create zip archive of directory "', $c->tag('code', $bundle_path), '"');
return "$bundle_path/$src_name";
}

return $zip_file;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/WeBWorK/Utils/CourseManagement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ sub addCourse {

# try to create it
eval { Mojo::File($courseDir)->make_path };
warn "Failed to create $courseDirName directory '$courseDir': $!. "
warn "Failed to create $courseDirName directory '$courseDir': $@. "
. "You will have to create this directory manually."
if $@;
}
Expand Down Expand Up @@ -659,7 +659,7 @@ sub deleteCourse {
# try to delete the directory
debug("Going to delete $courseDir...\n");
eval { Mojo::File->new($courseDir)->remove_tree };
warn "A error occurred when deleting $courseDir" if $@;
warn "An error occurred when deleting $courseDir" if $@;
} else {
debug("courseDir $courseDir was already deleted.\n");
}
Expand Down

0 comments on commit 130ba37

Please sign in to comment.