refactor: exceptions

This commit is contained in:
HDVinnie
2020-12-02 20:57:04 -05:00
parent 9caad8fbd6
commit 8ceb7df9b8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ class DbLoad extends Command
\exec($cmd, $output, $return);
if ($return !== 0) {
throw new \Exception(\sprintf('Could not load database from file %s', $input));
throw new \RuntimeException(\sprintf('Could not load database from file %s', $input));
}
}
}
+1 -1
View File
@@ -87,6 +87,6 @@ class BackupEncryption
return $this->zipFileOptions[$type];
}
throw new \Exception('Encryption key not set or invalid value', 1);
throw new \RuntimeException('Encryption key not set or invalid value', 1);
}
}