This commit is contained in:
Marcel Pociot
2020-05-03 20:58:46 +02:00
parent 1c38ab71b6
commit 141412762a
3 changed files with 16 additions and 6 deletions

View File

@@ -65,13 +65,13 @@ class Client
});
$connection->on('authenticationFailed', function ($data) use ($deferred) {
$this->logger->error("Authentication failed. Please check your authentication token and try again.");
$this->logger->error($data->data->message);
$this->exit($deferred);
});
$connection->on('subdomainTaken', function ($data) use ($deferred) {
$this->logger->error("The chosen subdomain \"{$data->data->subdomain}\" is already taken. Please choose a different subdomain.");
$this->logger->error($data->data->message);
$this->exit($deferred);
});