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() {
|
||||
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() {
|
||||
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