Unverified Commit e457047c authored by QuanluZhang's avatar QuanluZhang Committed by GitHub
Browse files

[retiarii] update debug info, and add license (#3438)

parent 539a7cd7
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import inspect import inspect
import warnings import warnings
from collections import defaultdict from collections import defaultdict
......
...@@ -593,11 +593,11 @@ def create_experiment(args): ...@@ -593,11 +593,11 @@ def create_experiment(args):
config = ExperimentConfig(**experiment_config) config = ExperimentConfig(**experiment_config)
experiment_config = convert.to_v1_yaml(config) experiment_config = convert.to_v1_yaml(config)
except Exception as e: except Exception as e:
print_error(f'Conversion from v2 format failed: {repr(e)}') print_error(f'Config in v2 format validation failed, the config error in v2 format is: {repr(e)}')
try: try:
validate_all_content(experiment_config, config_path) validate_all_content(experiment_config, config_path)
except Exception as e: except Exception as e:
print_error(f'Config in v1 format validation failed. {repr(e)}') print_error(f'Config in v1 format validation failed, the config error in v1 format is: {repr(e)}')
exit(1) exit(1)
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment