Skip to content

Commit d23ece8

Browse files
corroklees
authored andcommitted
Services/Component: Fix error message when downgrading plugins (#42931)
1 parent f9c3793 commit d23ece8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Services/Component/classes/class.ilArtifactComponentRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function setCurrentPluginVersion(string $plugin_id, Data\Version $version
289289
$plugin = $this->getPluginById($plugin_id);
290290
if ($plugin->getCurrentVersion() !== null && $plugin->getCurrentVersion()->isGreaterThan($version)) {
291291
throw new \RuntimeException(
292-
"Cannot upgrade plugins version from $version to {$plugin->getCurrentVersion()}"
292+
"Cannot downgrade plugins version from {$plugin->getCurrentVersion()} to $version"
293293
);
294294
}
295295
if ($plugin->getCurrentDBVersion() !== null && $plugin->getCurrentDBVersion() > $db_version) {

0 commit comments

Comments
 (0)