Now throwing errors to the next instance

ref #13
This commit is contained in:
Nicolai Ort 2020-12-09 18:53:36 +01:00
parent 204e2352a9
commit af1ad482d4
1 changed files with 6 additions and 1 deletions

View File

@ -35,7 +35,12 @@ export class CreateRunnerTeam extends CreateRunnerGroup {
let newRunnerTeam: RunnerTeam = new RunnerTeam();
newRunnerTeam.name = this.name;
newRunnerTeam.parentGroup = await this.getParent();
try {
newRunnerTeam.parentGroup = await this.getParent();
} catch (error) {
throw error;
}
newRunnerTeam.contact = await this.getContact()
return newRunnerTeam;