Merge "CreateProject: throw RuntimeException when creation failed"
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package com.google.gerrit.server.restapi.project;
|
package com.google.gerrit.server.restapi.project;
|
||||||
|
|
||||||
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
|
|
||||||
import com.google.common.base.MoreObjects;
|
import com.google.common.base.MoreObjects;
|
||||||
import com.google.common.base.Strings;
|
import com.google.common.base.Strings;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
@@ -222,6 +224,8 @@ public class CreateProject implements RestModifyView<TopLevelResource, ProjectIn
|
|||||||
}
|
}
|
||||||
|
|
||||||
ProjectState projectState = createProject(args);
|
ProjectState projectState = createProject(args);
|
||||||
|
checkNotNull(projectState, "failed to create project " + args.getProject().get());
|
||||||
|
|
||||||
if (input.pluginConfigValues != null) {
|
if (input.pluginConfigValues != null) {
|
||||||
ConfigInput in = new ConfigInput();
|
ConfigInput in = new ConfigInput();
|
||||||
in.pluginConfigValues = input.pluginConfigValues;
|
in.pluginConfigValues = input.pluginConfigValues;
|
||||||
|
Reference in New Issue
Block a user