Fix and reword some exception messages.

This commit is contained in:
Daniele Alessandri
2013-12-16 13:17:45 +01:00
parent 43f278fb71
commit 0f34f41ccf
70 changed files with 172 additions and 180 deletions
+3 -3
View File
@@ -59,11 +59,11 @@ abstract class AbstractConnection implements SingleConnectionInterface
$scheme = $parameters->scheme;
if ($scheme !== 'tcp' && $scheme !== 'unix') {
throw new InvalidArgumentException("Invalid scheme: $scheme");
throw new InvalidArgumentException("Invalid scheme: '$scheme'.");
}
if ($scheme === 'unix' && !isset($parameters->path)) {
throw new InvalidArgumentException('Missing UNIX domain socket path');
throw new InvalidArgumentException('Missing UNIX domain socket path.');
}
return $parameters;
@@ -90,7 +90,7 @@ abstract class AbstractConnection implements SingleConnectionInterface
public function connect()
{
if ($this->isConnected()) {
throw new ClientException('Connection already estabilished');
throw new ClientException('Connection already estabilished.');
}
$this->resource = $this->createResource();