Skip to content

Commit 85a76cb

Browse files
config: introduce invalid module path.
1 parent 10777e1 commit 85a76cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/config/strings.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import {ClassContainerParams} from '../types/models-universe';
33
export const STRINGS = {
44
FILE_IS_NOT_YAML: 'Provided impl file is not in yaml format.',
55
IMPL_IS_MISSING: 'Impl file is missing.',
6-
MISSING_CLASSNAME: 'Initalization param `model` is missing.',
7-
MISSING_PATH: 'Initalization param `path` is missing.',
6+
MISSING_CLASSNAME: "Initalization param 'model` is missing.",
7+
MISSING_PATH: "Initalization param 'path' is missing.",
88
NOT_MODEL_PLUGIN_EXTENSION:
9-
'Provided model does not extend `ModelPluginInterface`.',
9+
"Provided model does not extend 'ModelPluginInterface'.",
1010
STRUCTURE_MALFORMED: (childName: string) =>
1111
`Graph is malformed: graph.children.${childName} is not valid.`,
1212
NOT_INITIALIZED_MODEL: (className: string) =>
@@ -29,4 +29,6 @@ https://github.com/Green-Software-Foundation/if/issues/new?assignees=&labels=fee
2929
`,
3030
NOT_CONSTRUCTABLE_MODEL: (params: ClassContainerParams) =>
3131
`Provided model '${params.model}' is not constructable or does not belong to given plugin '${params.path}'.`,
32+
INVALID_MODULE_PATH: (path: string) =>
33+
`Provided module path: '${path}' is invalid.`,
3234
};

0 commit comments

Comments
 (0)