Returned error upon oembed catch

no issue
This commit is contained in:
Daniel Lockyer 2020-04-15 10:35:22 +01:00
parent 87bd26a4d6
commit da237ca885

View File

@ -29,8 +29,8 @@ async function fetchBookmarkData(url, html) {
html = response.body;
}
scraperResponse = await metascraper({html, url});
} catch (e) {
return Promise.reject();
} catch (err) {
return Promise.reject(err);
}
const metadata = Object.assign({}, scraperResponse, {