Update error message for buildConfig

This commit is contained in:
Yuya Ochiai
2017-11-09 00:37:35 +09:00
parent 45963a9eb1
commit fdf0d51442
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ function validateBuildConfig(config) {
if (config.enableServerManagement === false && config.defaultTeams && config.defaultTeams.length === 0) {
return {
result: false,
message: `When "enableServerManagement: false" is specified in buildConfig.js, "defaultTeams" must have one team at least.\n${JSON.stringify(config, null, 2)}`
message: `Specify at least one server for "defaultTeams" in buildConfig.js when "enableServerManagement is set to false.\n${JSON.stringify(config, null, 2)}`
};
}
return {result: true};

View File

@@ -6,6 +6,8 @@
* @prop {string} helpLink - The URL for "Help->Learn More..." menu item.
* If null is specified, the menu disappears.
* @prop {boolean} enableServerManagement - Whether users can edit servers configuration.
* Specify at least one server for "defaultTeams"
* when "enableServerManagement is set to false
*/
const buildConfig = {
defaultTeams: [/*