Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/amd64: fix unhandled promise at app startup without db connection #73

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

misteveus
Copy link

When the app is installed via .deb an unhandled promise occurs at startup, if there is no database connection, instead of opening the create db connection prompt.

Unhandled Promise Rejection
TypeError: Cannot read property 'username' of undefined
    at StigDB.changeConfig (/usr/lib/stig/resources/app/src/db/db.ts:115:64)
    at new StigDB (/usr/lib/stig/resources/app/src/db/db.ts:98:18)
    at HTMLDocument.document.addEventListener (/usr/lib/stig/resources/app/src/main.ts:64:24)

The issue appears to come from checking the wrong property in the StigDB constructor.

@misteveus misteveus changed the title linux/amd64: fix unhandled promise at app startup without db conneciton linux/amd64: fix unhandled promise at app startup without db connection Oct 20, 2021
@z-priest z-priest merged commit 1a9308b into idaholab:master Oct 20, 2021
@misteveus misteveus deleted the fix-unhandled-error-misteveus branch October 20, 2021 21:16
z-priest added a commit that referenced this pull request Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants