Unverified Commit 123bc9b0 authored by su's avatar su Committed by GitHub
Browse files

[feat]add error log in config validate check (#414)

parent 6cf33737
...@@ -87,9 +87,9 @@ class Config: ...@@ -87,9 +87,9 @@ class Config:
content = f.read() content = f.read()
try: try:
ast.parse(content) ast.parse(content)
except SyntaxError: except SyntaxError as e:
raise SyntaxError('There are syntax errors in config ' raise SyntaxError('There are syntax errors in config '
f'file {filename}') f'file {filename}: {e}')
@staticmethod @staticmethod
def _substitute_predefined_vars(filename, temp_config_name): def _substitute_predefined_vars(filename, temp_config_name):
......
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