Skip to content

Commit

Permalink
Better error display
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberSahdev committed Nov 10, 2024
1 parent eb5a40b commit b8e1117
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def __init__(self):
except OpenAIError as e:
self.status_queue.put(f'Set your OpenAPI API Key in Settings and Restart the App. Error: {e}')
except Exception as e:
self.status_queue.put(f'An error occurred during startup. Please fix and restart the app. Error: {e}')
self.status_queue.put(f'An error occurred during startup. Please fix and restart the app.\n'
f'Error likely in file {Settings().settings_file_path}.\n'
f'Error: {e}')

def execute_user_request(self, user_request: str) -> None:
self.stop_previous_request()
Expand Down

0 comments on commit b8e1117

Please sign in to comment.