mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
refactoring
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
use App\Exceptions\ServerProviderError;
|
||||
use App\Notifications\FailedToDeleteServerFromProvider;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class Linode extends AbstractProvider
|
||||
{
|
||||
@ -103,6 +104,7 @@ public function create(): void
|
||||
if (count($errors) > 0) {
|
||||
$msg = $errors[0]['reason'];
|
||||
}
|
||||
Log::error("Linode error", $errors);
|
||||
throw new ServerProviderError($msg);
|
||||
}
|
||||
$this->server->ip = $create->json()['ipv4'][0];
|
||||
|
Reference in New Issue
Block a user