mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-11 08:43:59 +03: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 |
||
---|---|---|
.. | ||
client@18b5ca27f6 | ||
frontend | ||
server | ||
shared | ||
app.js | ||
boot.js | ||
bridge.js |