fix(CLI Onboarding): Only call handleError if plugin defined

This commit is contained in:
Piotr Grzesik 2021-06-29 17:21:08 +02:00
parent 80b76406ac
commit a80681ffbf

View File

@ -172,7 +172,9 @@ module.exports = {
}
);
} catch (err) {
interactiveOutputPlugin.handleError();
if (interactiveOutputPlugin) {
interactiveOutputPlugin.handleError();
}
throw err;
}