From 5f7e9eb3bb187904240eb6f6bc9b5d0908ff68dc Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Mon, 18 Sep 2023 23:39:06 +0400 Subject: [PATCH] util: in models universe handle wrong model case. --- src/util/models-universe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/models-universe.ts b/src/util/models-universe.ts index 0e84955c3..c6944f181 100644 --- a/src/util/models-universe.ts +++ b/src/util/models-universe.ts @@ -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}.`); } }