mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Update error message
This commit is contained in:
parent
82e50198ef
commit
0d036c5d08
1 changed files with 2 additions and 2 deletions
|
@ -202,10 +202,10 @@ class Utilities(Configs):
|
|||
Returns:
|
||||
Dictionary with data.
|
||||
"""
|
||||
json_data: dict = {}
|
||||
try:
|
||||
json_data: dict = json.loads(file.read_text(encoding='utf-8'))
|
||||
except FileNotFoundError:
|
||||
print(f'\n{self.prog_name}: Error file {file} not found.\n')
|
||||
print()
|
||||
self.errors.raise_error_message(f'{file} not found.', exit_status=1)
|
||||
raise SystemExit(1)
|
||||
return json_data
|
||||
|
|
Loading…
Reference in a new issue