Skip to content

Commit 07c36bb

Browse files
Create function for part which validates module positions
1 parent f3f2b0a commit 07c36bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/check_config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function checkConfigFile () {
6161

6262
if (errors.length === 0) {
6363
Log.info(colors.green("Your configuration file doesn't contain syntax errors :)"));
64+
validateModulePositions(configFileName);
6465
} else {
6566
let errorMessage = "Your configuration file contains syntax errors :(";
6667

@@ -69,7 +70,9 @@ function checkConfigFile () {
6970
}
7071
throw new Error(errorMessage);
7172
}
73+
}
7274

75+
function validateModulePositions (configFileName) {
7376
Log.info("Checking modules structure configuration ...");
7477

7578
const positionList = Utils.getModulePositions();
@@ -116,7 +119,7 @@ function checkConfigFile () {
116119
} else {
117120
errorMessage += validate.errors[0].message;
118121
}
119-
throw new Error(errorMessage);
122+
Log.error(errorMessage);
120123
}
121124
}
122125

0 commit comments

Comments
 (0)