0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core
Kevin Ansfield 1190ff1df0 Fixed errors being swallowed in oembed service
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
2021-11-23 10:58:52 +00:00
..
client@18b5ca27f6 Updated Admin to v4.22.4 2021-11-19 16:00:31 +00:00
frontend Fixed callout card emoji alignment 2021-11-22 10:52:21 +01:00
server Fixed errors being swallowed in oembed service 2021-11-23 10:58:52 +00:00
shared Added productCard labs flag 2021-11-22 11:46:28 +01:00
app.js
boot.js Removed force start from themes test 2021-11-22 17:47:44 +04:00
bridge.js Removed forceStart in theme e2e tests 2021-11-22 14:51:23 +04:00