Skip to content

Commit c0bf85f

Browse files
committed
Improve error message for OraTAPI.ini not found.
1 parent 0c4ddf9 commit c0bf85f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controller/ora_tapi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def __init__(self, trace: bool = False):
3939
chdir(proj_home)
4040
config_file_path = CONFIG_LOCATION / 'OraTAPI.ini'
4141
if not config_file_path.exists():
42-
raise FileNotFoundError(f'Unable to locate config file: {config_file_path}')
42+
print(f'ERROR: Unable to locate config file: {config_file_path}')
43+
print(f'This is possibly due to an incomplete installation. Did you run the quick config command?')
44+
exit(1)
4345
try:
4446
self.view = Interactions(controller=self, config_file_path=config_file_path)
4547
except MissingParameterError as e:
@@ -51,7 +53,6 @@ def __init__(self, trace: bool = False):
5153
f"optional arguments.\n\nDepending on your platform, you should replace <ora_tapi> with either of "
5254
f"ora_tapi.sh (Linux/macOS/Git Bash) or\nora_tapi.ps1/ora_tapi (Windows PowerShell).\n"
5355
f"\nUse -h for help."
54-
5556
)
5657
exit(1) # Exit with an error status
5758
args_dict = self.view.args_dict

0 commit comments

Comments
 (0)