From e15badad18791e093c94b9cea6e2c38fc9bbf5e7 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Mon, 20 Aug 2018 12:53:37 -0700 Subject: [PATCH] Improving error handling. --- tools/auto-tester/src/Test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/auto-tester/src/Test.cpp b/tools/auto-tester/src/Test.cpp index 3ddb9c0550..45344c1716 100644 --- a/tools/auto-tester/src/Test.cpp +++ b/tools/auto-tester/src/Test.cpp @@ -652,7 +652,10 @@ bool Test::createTestAutoScript(const QString& directory) { // Creates a single script in a user-selected folder. // This script will run all text.js scripts in every applicable sub-folder void Test::createRecursiveScript() { - createFileSetup(); + if (!createFileSetup()) { + return; + } + createRecursiveScript(_testDirectory, true); QMessageBox::information(0, "Success", "'testRecursive.js` script has been created"); }