Skip to content

Commit 58f33e8

Browse files
committed
fixup! Add PP states to project_jump.php
1 parent 90c7330 commit 58f33e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/site_admin/project_jump.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ function jump_project(string $projectid, string $new_state, bool $just_checking)
112112
}
113113

114114
if ('proj_post_first_checked_out' == $new_state && '' == $project->checkedoutby) {
115-
error_and_die("project must have a PPer assigned to jump to $new_state");
115+
throw new RuntimeException("project must have a PPer assigned to jump to $new_state");
116116
} elseif ('proj_post_first_checked_out' == $new_state) {
117117
echo " PPer : $project->checkedoutby\n";
118118
}
119119
if ('proj_post_first_available' == $new_state && '' != $project->checkedoutby) {
120-
error_and_die("project has a PPer assigned ($project->checkedoutby) so can't jump to $new_state");
120+
throw new RuntimeException("project has a PPer assigned ($project->checkedoutby) so can't jump to $new_state");
121121
}
122122

123123

0 commit comments

Comments
 (0)