From df80b7cd2b60fbaeb214c1d4e9326cd360d6b7d0 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Tue, 4 Dec 2018 18:07:52 +0100 Subject: [PATCH] Make sure the app is not cleaned up if relative path is provided (#289) --- lib/basedriver/helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/basedriver/helpers.js b/lib/basedriver/helpers.js index 20db697cb..a06cf2eb6 100644 --- a/lib/basedriver/helpers.js +++ b/lib/basedriver/helpers.js @@ -173,9 +173,9 @@ async function configureApp (app, supportedAppExtensions) { logger.info(`Unzipped local app to '${newApp}'`); } else if (!path.isAbsolute(newApp)) { newApp = path.resolve(process.cwd(), newApp); - logger.warn(`The current application path '${app}' is relative, ` + - `which might cause further issues. The path has been rewritten to '${newApp}' ` + - `in order to avoid them`); + logger.warn(`The current application path '${app}' is not absolute ` + + `and has been rewritten to '${newApp}'. Consider using absolute paths rather than relative`); + app = newApp; } verifyAppExtension(newApp, supportedAppExtensions);