0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server
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
..
adapters Added ability to delete existing files through storage adapters 2021-11-09 16:07:23 +04:00
api Added Tenor contentFilter setting to config 2021-11-16 17:42:26 +00:00
data Added perf-improving PRAGMAs in testing mode 2021-11-19 10:47:21 +00:00
lib Renamed getLocalFileStoragePath 2021-11-05 17:17:18 +04:00
models
services Fixed errors being swallowed in oembed service 2021-11-23 10:58:52 +00:00
views
web Renamed withBackend/withFrotned to backend/frontend 2021-11-22 21:56:32 +13:00
analytics-events.js
ghost-server.js
notify.js
overrides.js
run-update-check.js
update-check.js