diff --git a/config_generator.py b/config_generator.py index e283bf0..08f4c61 100644 --- a/config_generator.py +++ b/config_generator.py @@ -376,9 +376,20 @@ if len(sys.argv) > 7: param_enable_upload_remote_config = sys.argv[7] if __name__ == "__main__": - if project_id is None or platform is None or env is None or google_sheet_file_name is None or sheet_table_name is None: - config.notification.append_msg(f'参数错误[project_id:{project_id}, platform:{platform}, env:{env}, ' - f'google_sheet_file_name:{google_sheet_file_name}, sheet_table_name:{sheet_table_name}]') + if project_id is None: + config.notification.append_msg(f'参数错误[project_id is None]') + exit(1) + + if platform is None: + config.notification.append_msg(f'参数错误[platform is None]') + exit(1) + + if env is None: + config.notification.append_msg(f'参数错误[env is None]') + exit(1) + + if google_sheet_file_name is None or sheet_table_name is None: + config.notification.append_msg(f'参数错误[google_sheet_file_name or sheet_table_name is None]') exit(1) config_generator = ConfigGenerator(google_sheet_file_name, sheet_table_name, project_id, platform, env)