Skip to content

Commit bdaf001

Browse files
committed
MAGETWO-52000: [Github][PR]impossible to see what is wrong with cron - unhelpful error message #3189
- fix unknown variable merge error and path in docblock
1 parent 2a9cebf commit bdaf001

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: setup/src/Magento/Setup/Model/Cron/ReadinessCheck.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ReadinessCheck
3636
/**#@-*/
3737

3838
/**
39-
* @var DbValidator
39+
* @var \Magento\Setup\Validator\DbValidator
4040
*/
4141
private $dbValidator;
4242

@@ -138,6 +138,7 @@ public function runReadinessCheck()
138138

139139
// Prepare list of magento specific files and directory paths for updater application to check write
140140
// permissions
141+
$errorMessage = '';
141142
try {
142143
$filePaths = $this->basePackageInfo->getPaths();
143144
$resultJsonRawData[self::KEY_FILE_PATHS][self::KEY_LIST] = $filePaths;
@@ -146,7 +147,7 @@ public function runReadinessCheck()
146147
$resultJsonRawData[self::KEY_FILE_PATHS][self::KEY_LIST] = [];
147148
$errorLogMessages[] = $errorMessage;
148149
}
149-
$resultJsonRawData[self::KEY_FILE_PATHS][self::KEY_ERROR] = $errorMsg;
150+
$resultJsonRawData[self::KEY_FILE_PATHS][self::KEY_ERROR] = $errorMessage;
150151

151152
// updates timestamp
152153
$write = $this->filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem\DirectoryList::VAR_DIR);

0 commit comments

Comments
 (0)