mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 08:44:46 +02:00
Do all exceptions here
This commit is contained in:
parent
796a236ef4
commit
7e5d21a889
@ -387,7 +387,7 @@ class Server extends Model
|
|||||||
return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [
|
return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [
|
||||||
'commands' => is_array($command) ? $command : [$command],
|
'commands' => is_array($command) ? $command : [$command],
|
||||||
])->toPsrResponse();
|
])->toPsrResponse();
|
||||||
} catch (TransferException $exception) {
|
} catch (GuzzleException $exception) {
|
||||||
throw new DaemonConnectionException($exception);
|
throw new DaemonConnectionException($exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user