Skip to content

Commit

Permalink
util: in models universe handle wrong model case.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Sep 18, 2023
1 parent baadad3 commit 5f7e9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/models-universe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export class ModelsUniverse {
return EMemModel;
case 'aveva':
return EAvevaModel;
default: // cover default
return BoaviztaCpuImpactModel;
default:
throw new Error(`Missing or wrong model: ${name}.`);
}
}

Expand Down

0 comments on commit 5f7e9eb

Please sign in to comment.