be more explicit when flash configuration is missing

This commit is contained in:
Emil Lerch 2023-04-22 14:31:00 -07:00
parent b30b76afa7
commit d8f8786994
1 changed files with 2 additions and 0 deletions

View File

@ -1228,6 +1228,8 @@ class BaseEflashLoader(object):
cfg_dir = app_path + '/utils/flash/' + self.chip_type + '/'
conf_name = self.get_suitable_conf_name(cfg_dir, flash_id)
if os.path.isfile(cfg_dir + conf_name) is False:
printf('ERROR: Could not find flash configuration for chip')
printf('File must be at: %s' % cfg_dir + conf_name)
return False
return True