Skip to content

Commit

Permalink
fixup! Add PP states to project_jump.php
Browse files Browse the repository at this point in the history
  • Loading branch information
srjfoo committed Dec 23, 2024
1 parent db88f13 commit dd39af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/site_admin/project_jump.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ function jump_project(string $projectid, string $new_state, bool $just_checking)
}

if ('proj_post_first_checked_out' == $new_state && '' == $project->checkedoutby) {
error_and_die("project must have a PPer assigned to jump to $new_state");
throw new RuntimeException("project must have a PPer assigned to jump to $new_state");
} elseif ('proj_post_first_checked_out' == $new_state) {
echo " PPer : $project->checkedoutby\n";
}
if ('proj_post_first_available' == $new_state && '' != $project->checkedoutby) {
error_and_die("project has a PPer assigned ($project->checkedoutby) so can't jump to $new_state");
throw new RuntimeException("project has a PPer assigned ($project->checkedoutby) so can't jump to $new_state");
}


Expand Down

0 comments on commit dd39af2

Please sign in to comment.