Node.js based forum software built for the modern web
test: add logs for test failures
Barış Soner Uşaklı335873589bdf
diff --git a/src/plugins/index.js b/src/plugins/index.jsindex f3a42aa01a..37980dd55c 100644--- a/src/plugins/index.js+++ b/src/plugins/index.js@@ -155,6 +155,7 @@ Plugins.get = async function (id) {const url = `${nconf.get('registry') || 'https://packages.nodebb.org'}/api/v1/plugins/${id}`;const { response, body } = await request.get(url);if (!response.ok) {+ console.log(response);throw new Error(`[[error:unable-to-load-plugin, ${id}]]`);}let normalised = await Plugins.normalise([body ? body.payload : {}]);@@ -171,6 +172,7 @@ Plugins.list = async function (matching) {try {const { response, body } = await request.get(url);if (!response.ok) {+ console.log(response);throw new Error(`[[error:unable-to-load-plugins-from-nbbpm]]`);}return await Plugins.normalise(body);@@ -184,6 +186,7 @@ Plugins.listTrending = async () => {const url = `${nconf.get('registry') || 'https://packages.nodebb.org'}/api/v1/analytics/top/week`;const { response, body } = await request.get(url);if (!response.ok) {+ console.log(response);throw new Error(`[[error:unable-to-load-trending-plugins]]`);}return body;