-
Notifications
You must be signed in to change notification settings - Fork 38
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
When pull fails it doesn't provide details #690
Comments
They just need to use a better browser =P Maybe related chromium issue? |
Wow! What browser is that. But in any case, we can't build features that don't work right for the majority browser ;-). |
I'm just thinking that Chrome will fix this in the near term so it might not be worth spending time on. Also, the latest Node.js also prints cause for stack traces. |
If it's going to get fixed by Chromium and pushed out to stable like tomorrow or this week sure. But otherwise, let's fix. |
### Problem Push and pull error logging lacks sufficient detail to debug errors. A pull failure currently logs to info (and a push error logs essentially the same): `Pull returned: PullError: Failed to pull` Not the most useful logging. However, our `PushError` and `PullError` classes have a `cause?: Error` property with details on the underlying cause, it is just not logged. ### Solution If the error is a `PushError` or `PullError`, log the cause. Update log format to include stack traces for both the error, and cause. Also update to use `error` instead of `info` logging. Closes #690
### Problem Push and pull error logging lacks sufficient detail to debug errors. A pull failure currently logs to info (and a push error logs essentially the same): `Pull returned: PullError: Failed to pull` Not the most useful logging. However, our `PushError` and `PullError` classes have a `cause?: Error` property with details on the underlying cause, it is just not logged. ### Solution If the error is a `PushError` or `PullError`, log the cause. Update log format to include stack traces for both the error, and cause. Also update to use `error` instead of `info` logging. Closes #690
I hit this, as did a user. We set the
cause
of the exception, here:replicache/src/puller.ts
Line 101 in 16d2597
But this doesn't show up in the console anywhere so it's hard to know what's going wrong. Maybe we should include the causes's message in our message?
Or maybe we don't even need this
PullError
abstraction anymore.The text was updated successfully, but these errors were encountered: