From 79dbdff0542620ee58f718166ee5ab702dacf8f5 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 1 Dec 2022 18:44:21 +0000 Subject: [PATCH] Fixed error logging in importer refs: https://github.com/TryGhost/Toolbox/issues/431 - the error logging was only outputting 'Content import was unsuccessful' and not outputting the associated error --- ghost/core/core/server/data/importer/import-manager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ghost/core/core/server/data/importer/import-manager.js b/ghost/core/core/server/data/importer/import-manager.js index 8a7cbb06e3..0b9f318bc9 100644 --- a/ghost/core/core/server/data/importer/import-manager.js +++ b/ghost/core/core/server/data/importer/import-manager.js @@ -436,9 +436,7 @@ class ImportManager { return importResult; } catch (err) { - logging.error(`Content import was unsuccessful`, { - error: err - }); + logging.error(err, 'Content import was unsuccessful'); importResult = {data: {errors: [err]}}; } finally { // Step 5: Cleanup any files