10000 fix: Display js error when upload fail by zatteo · Pull Request #1124 · cozy/cozy-flagship-app · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Display js error when upload fail #1124

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 t 8000 erms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2024
Merged

fix: Display js error when upload fail #1124

merged 1 commit into from
Jan 15, 2024

Conversation

zatteo
Copy link
Member
@zatteo zatteo commented Jan 15, 2024

There are two possibilities to enter the catch in prepareAndUploadMedia :

  • with a Promise.reject : must be displayed in logs with JSON.stringify : OK
  • with a JS error : must be displayed in logs without JSON.stringify : NOT OK

We should standardize every reject/throw in prepareAndUploadMedia but for the moment, let's just log the error stringified and not stringified.

There are two possibilities to enter the catch in prepareAndUploadMedia :
- with a Promise.reject : must be displayed in logs with JSON.stringify : OK
- with a JS error : must be displayed in logs without JSON.stringify : NOT OK

We should standardize every reject/throw in prepareAndUploadMedia but for the moment,
let's just log the error stringified and not stringified.
@zatteo zatteo merged commit ada1e60 into master Jan 15, 2024
@zatteo zatteo deleted the fix/log-backup branch January 15, 2024 14:50
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
0