Fixed #1664: Misleading error message on module uninstall

This commit is contained in:
Lucas Bartholemy 2016-05-02 00:01:36 +02:00
parent 39112b860a
commit 73279be477

View File

@ -295,7 +295,7 @@ class ModuleManager extends \yii\base\Component
$backupFolderName = $moduleBackupFolder . DIRECTORY_SEPARATOR . $moduleId . "_" . time();
if (!@rename($module->getBasePath(), $backupFolderName)) {
throw new Exception("Could not remove module folder!" . $backupFolderName);
throw new Exception("Could not move module to backup folder!" . $backupFolderName);
}
} else {
//TODO: Delete directory