Skip to content

Commit 69fb297

Browse files
committed
MCLOUD-6381: Update error descriptions
1 parent f784060 commit 69fb297

File tree

22 files changed

+26
-27
lines changed

22 files changed

+26
-27
lines changed

src/Command/ErrorShow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8787
} else {
8888
$errors = $this->reader->read();
8989
if (empty($errors)) {
90-
$output->writeln('The error log is empty or doesn\'t exist');
90+
$output->writeln('The error log is empty or does not exist');
9191

9292
return 1;
9393
}

src/Config/Schema/Validator/SplitDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function validate(string $key, $value): ResultInterface
3737
if (array_diff($value, DeployInterface::SPLIT_DB_VALUES)) {
3838
return $this->resultFactory->error(sprintf(
3939
'The %s variable contains the invalid value. '
40-
. 'It should be array with next available values: [%s].',
40+
. 'It should be an array with following values: [%s].',
4141
$key,
4242
implode(', ', DeployInterface::SPLIT_DB_VALUES)
4343
));

src/Config/Validator/Deploy/DebugLogging.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ public function validate(): ResultInterface
6666

6767
return $this->resultFactory->error(
6868
'Debug logging is enabled in Magento',
69-
'To save space in Magento Cloud, '
70-
. 'debug logging should not be enabled for your production environments.',
69+
'To save space in Magento Cloud, disable debug logging for your production environments.',
7170
Error::WARN_DEBUG_LOG_ENABLED
7271
);
7372
}

src/Config/Validator/Deploy/ElasticSearchUsage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function validate(): Validator\ResultInterface
7474

7575
return $this->resultFactory->error(
7676
'Elasticsearch service is installed at infrastructure layer but is not used as a search engine.',
77-
'Consider removing elasticsearch service from infrastructure layer for optimized resource usage.',
77+
'Consider removing the Elasticsearch service from the infrastructure layer for optimized resource usage.',
7878
Error::WARN_ES_INSTALLED_BUT_NOT_USED
7979
);
8080
}

src/Config/Validator/Deploy/PhpVersion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function validate(): Validator\ResultInterface
102102
$currentPhpConstraint->getPrettyString()
103103
),
104104
"Change the version of PHP to the version that satisfies the restriction conditions.\n"
105-
. 'Change the PHP version in the .magento.app.yaml file or create a support ticket',
105+
. 'Change the PHP version in the .magento.app.yaml file, or create a support ticket',
106106
Error::WARN_UPDATE_PHP_VERSION
107107
);
108108
}

src/Config/Validator/Deploy/ReportDirNestingLevel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function validate(): Validator\ResultInterface
8585

8686
return $this->resultFactory->error(
8787
'The directory nesting level value for error reporting has not been configured.',
88-
'You can configure the setting using the `config.report.dir_nesting_level`'
88+
'You can configure the setting using the `config.report.dir_nesting_level` variable'
8989
. ' in the file ' . $reportConfigFile,
9090
Error::WARN_DIR_NESTING_LEVEL_NOT_CONFIGURED
9191
);

src/Config/Validator/Deploy/SolrIntegrity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function validate(): ResultInterface
6363

6464
if ($this->magentoVersion->satisfies('2.1.*')) {
6565
$args['suggestion'] = 'Solr support has been deprecated in Magento 2.1. ' .
66-
'Update your search engine to Elasticsearch and remove this relationship.';
66+
'Remove this relationship and use Elasticsearch.';
6767
$args['errorCode'] = Error::WARN_SOLR_DEPRECATED;
6868
}
6969

src/DB/Data/ConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function create(string $connectionType): ConnectionInterface
6868
return $this->getConnectionData(DbConfig::CONNECTION_SALES, false);
6969
default:
7070
throw new RuntimeException(
71-
sprintf('Connection with type %s doesn\'t exist', $connectionType)
71+
sprintf('Connection with type %s does not exist', $connectionType)
7272
);
7373
}
7474
}

src/DB/Data/RelationshipConnectionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function create(string $connectionType): ConnectionInterface
6666
break;
6767
default:
6868
throw new \RuntimeException(
69-
sprintf('Connection with type %s doesn\'t exist', $connectionType)
69+
sprintf('Connection with type %s does not exist', $connectionType)
7070
);
7171
}
7272

src/Filesystem/DirectoryCopier/StrategyFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function create(string $strategy): StrategyInterface
4949
break;
5050
default:
5151
throw new \RuntimeException(
52-
sprintf('Strategy "%s" doesn\'t exist', $strategy)
52+
sprintf('Strategy "%s" does not exist', $strategy)
5353
);
5454
}
5555

0 commit comments

Comments
 (0)