From a80681ffbf23391cb31d34b8eecaef310d9599a3 Mon Sep 17 00:00:00 2001 From: Piotr Grzesik Date: Tue, 29 Jun 2021 17:21:08 +0200 Subject: [PATCH] fix(CLI Onboarding): Only call `handleError` if plugin defined --- lib/cli/interactive-setup/deploy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli/interactive-setup/deploy.js b/lib/cli/interactive-setup/deploy.js index 16c5d0345..f812b0cb3 100644 --- a/lib/cli/interactive-setup/deploy.js +++ b/lib/cli/interactive-setup/deploy.js @@ -172,7 +172,9 @@ module.exports = { } ); } catch (err) { - interactiveOutputPlugin.handleError(); + if (interactiveOutputPlugin) { + interactiveOutputPlugin.handleError(); + } throw err; }