Skip to content

Commit

Permalink
fix analyze_parameter/analyze_variable log
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Jul 16, 2024
1 parent c1e1d4e commit 3bbace4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion handler/analyzer/analyze_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def init_option_diff(self):
if offline_file_option:
if not os.path.exists(os.path.abspath(offline_file_option)):
self.stdio.error('args --file [{0}] not exist: No such file, Please specify it again'.format(os.path.abspath(offline_file_option)))
exit(-1)
return False
else:
self.parameter_file_name = os.path.abspath(offline_file_option)
self.check_file_valid()
Expand Down
4 changes: 2 additions & 2 deletions handler/analyzer/analyze_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ def init_option(self):
if offline_file_option:
if not os.path.exists(os.path.abspath(offline_file_option)):
self.stdio.error('args --file [{0}] not exist: No such file, Please specify it again'.format(os.path.abspath(offline_file_option)))
exit(-1)
return False
else:
self.variable_file_name = os.path.abspath(offline_file_option)
self.check_file_valid()
else:
self.stdio.error("args --file need provided to find the parts where variables have changed.")
exit(-1)
return False

if store_dir_option and store_dir_option != "./":
if not os.path.exists(os.path.abspath(store_dir_option)):
Expand Down

0 comments on commit 3bbace4

Please sign in to comment.