mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-04-02 20:26:09 +03:00
Server: added missing error message
This commit is contained in:
parent
f369d4e2d4
commit
1ee226465b
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ namespace GraphQL\Server;
|
|||
use GraphQL\Error\InvariantViolation;
|
||||
use GraphQL\Executor\ExecutionResult;
|
||||
use GraphQL\Executor\Promise\Promise;
|
||||
use GraphQL\Utils;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
@ -49,7 +50,7 @@ class StandardServer
|
|||
$config = ServerConfig::create($config);
|
||||
}
|
||||
if (!$config instanceof ServerConfig) {
|
||||
throw new InvariantViolation("");
|
||||
throw new InvariantViolation("Expecting valid server config, but got " . Utils::printSafe($config));
|
||||
}
|
||||
|
||||
$this->config = $config;
|
||||
|
|
Loading…
Add table
Reference in a new issue