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

fix: Display js error when upload fail #1124

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
Contributor

@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
1 check passed
@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