mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
f5f02d7168
no issue When switching the oembed service to async/await the error handling was not correctly refactored. `this.errorHandler(url)` was returning a curried function so it could be used as `.catch(this.errorHandler(url))` but that's not how it's being used after the async/await change meaning we were returning a function rather than the result of that function. - `this.errorHandler(url)` is now only used in one place where `url` is available so removed the method and moved the body of the curried function inline into the `catch` handler - added a message to the logged error so it's more clear what the log refers to |
||
---|---|---|
.. | ||
adapter-manager | ||
auth | ||
bulk-email | ||
email-analytics | ||
integrations | ||
invitations | ||
invites | ||
jobs | ||
mega | ||
members | ||
notifications | ||
offers | ||
permissions | ||
posts | ||
public-config | ||
redirects | ||
route-settings | ||
settings | ||
stripe | ||
themes | ||
url | ||
webhooks | ||
custom-theme-settings.js | ||
limits.js | ||
nft-oembed.js | ||
oembed.js | ||
slack.js | ||
users.js | ||
xmlrpc.js |