mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Add url as context to oembed unknownProvider error
- This is so that we can use logs to see urls that turn up with this error
This commit is contained in:
parent
bbae006eb5
commit
d1e3205569
@ -44,7 +44,8 @@ const oembed = {
|
|||||||
|
|
||||||
function unknownProvider() {
|
function unknownProvider() {
|
||||||
return Promise.reject(new common.errors.ValidationError({
|
return Promise.reject(new common.errors.ValidationError({
|
||||||
message: common.i18n.t('errors.api.oembed.unknownProvider')
|
message: common.i18n.t('errors.api.oembed.unknownProvider'),
|
||||||
|
context: url
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,8 @@ module.exports = {
|
|||||||
|
|
||||||
function unknownProvider() {
|
function unknownProvider() {
|
||||||
return Promise.reject(new common.errors.ValidationError({
|
return Promise.reject(new common.errors.ValidationError({
|
||||||
message: common.i18n.t('errors.api.oembed.unknownProvider')
|
message: common.i18n.t('errors.api.oembed.unknownProvider'),
|
||||||
|
context: url
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user