Display error messages on app startup for non-dev users #2457

Closed
opened 2019-05-01 06:14:56 +02:00 by osilkin98 · 8 comments
osilkin98 commented 2019-05-01 06:14:56 +02:00 (Migrated from github.com)

The Issue

End users should have the ability to view whatever error caused the app to crash.

I will have one of the installed binaries fail to start and don't know what the issue is, and since the developer tools are disabled, I can't figure it out on my own. Back in the 2000s, applications would just give you an error message or error code so you can debug it. The lack of this ability removes the end user's ability to debug it, or our ability to prevent it.

Steps to Reproduce

Expected Behavior

Error messages should be displayed to the user

Actual Behavior

Error messages are not displayed to the user.

Suggested Solutions

alert(error);

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-desktop/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on live chat at https://chat.lbry.com --> ## The Issue End users should have the ability to view whatever error caused the app to crash. I will have one of the installed binaries fail to start and don't know what the issue is, and since the developer tools are disabled, I can't figure it out on my own. Back in the 2000s, applications would just give you an error message or error code so you can debug it. The lack of this ability removes the end user's ability to debug it, or our ability to prevent it. ### Steps to Reproduce 1. 2. 3. ### Expected Behavior Error messages should be displayed to the user ### Actual Behavior Error messages are not displayed to the user. ### Suggested Solutions `alert(error);`
tzarebczan commented 2019-05-01 06:17:14 +02:00 (Migrated from github.com)

Most users won't want to debug, they just want it to work. Adding the last few lines of the sdk log could be helpful, but not always...and that's usually the cause of a majority of failures. I'd consider this blocked by https://github.com/lbryio/lbry/issues/1118

Most users won't want to debug, they just want it to work. Adding the last few lines of the sdk log could be helpful, but not always...and that's usually the cause of a majority of failures. I'd consider this blocked by https://github.com/lbryio/lbry/issues/1118
neb-b commented 2019-05-01 06:17:32 +02:00 (Migrated from github.com)

Is this for when you see the crash page? Or if it crashes before then?

Is this for when you see the crash page? Or if it crashes before then?
osilkin98 commented 2019-05-01 06:19:23 +02:00 (Migrated from github.com)

This would be for when you see the crash page. You could just have a little See Details dropdown button that reveals the log which usually gets printed to console.error

The way that it's configured when running yarn dev is fine, I just think it should be the behavior by default. It would give people more to work with on both ends.

This would be for when you see the crash page. You could just have a little `See Details` dropdown button that reveals the log which usually gets printed to `console.error` The way that it's configured when running `yarn dev` is fine, I just think it should be the behavior by default. It would give people more to work with on both ends.
neb-b commented 2019-05-01 06:21:16 +02:00 (Migrated from github.com)

Most errors will be pretty worthless without sourcemaps. But there is probably something we can do to improve this.

Most errors will be pretty worthless without sourcemaps. But there is probably something we can do to improve this.
osilkin98 commented 2019-05-01 06:22:12 +02:00 (Migrated from github.com)

The problem I have with it is that I know it's something to do with my configuration, but the fact that I can't even see the error log limits my ability to troubleshoot it.

Also running a different developer instances of the app not only presents more redundancy but will likely not even produce the same error if any, so it'll be tainted.

The problem I have with it is that I know it's something to do with my configuration, but the fact that I can't even see the error log limits my ability to troubleshoot it. Also running a different developer instances of the app not only presents more redundancy but will likely not even produce the same error if any, so it'll be tainted.
neb-b commented 2019-05-01 06:24:26 +02:00 (Migrated from github.com)

I gotcha. I guess for a quick fix you could change the errorBoundary/view.jsx component to put the error on the page. Just so you can see it.

I gotcha. I guess for a quick fix you could change the errorBoundary/view.jsx component to put the error on the page. Just so you can see it.
osilkin98 commented 2019-05-01 06:39:14 +02:00 (Migrated from github.com)

@tzarebczan It wasn't anything to do with the daemon as it was something else. The problem is that I was trying to do something unrelated to development on the app so having to fork & spin up an electron instance of the app is very inconvenient and not something anyone would want to, if all they want to know is what the error is.

@tzarebczan It wasn't anything to do with the daemon as it was something else. The problem is that I was trying to do something unrelated to development on the app so having to fork & spin up an electron instance of the app is very inconvenient and not something anyone would want to, if all they want to know is what the error is.
tzarebczan commented 2019-05-07 15:05:46 +02:00 (Migrated from github.com)

Gotcha, closing for now. Please reopen a new issue if there's a particular action we need to take.

Gotcha, closing for now. Please reopen a new issue if there's a particular action we need to take.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#2457
No description provided.