Skip to content

Commit

Permalink
Fix Exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd0x2a committed Mar 19, 2024
1 parent 80b6a56 commit 0a824e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/console/controllers/DatabaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function actionPull($filename)
$this->requirePluginConfigured();
$startTime = microtime(true);
if (RemoteSync::getInstance()->getSettings()->disableRestore) {
throw new Exception(Craft::t('remote-sync', 'Restore not enabled for this environment'));
throw new \Exception(Craft::t('remote-sync', 'Restore not enabled for this environment'));
}
RemoteSync::getInstance()->provider->pullDatabase($filename);
$this->stdout("Pulled and restored remote database:" . PHP_EOL, Console::FG_GREEN);
Expand Down
2 changes: 1 addition & 1 deletion src/console/controllers/VolumeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function actionPull($filename)
$this->requirePluginConfigured();
$startTime = microtime(true);
if (RemoteSync::getInstance()->getSettings()->disableRestore) {
throw new Exception(Craft::t('remote-sync', 'Restore not enabled for this environment'));
throw new \Exception(Craft::t('remote-sync', 'Restore not enabled for this environment'));
}
RemoteSync::getInstance()->provider->pullVolume($filename);
$this->stdout("Pulled and restored remote volume:" . PHP_EOL, Console::FG_GREEN);
Expand Down

0 comments on commit 0a824e0

Please sign in to comment.