Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit d5cff49

Browse files
author
Adam Cowley
committed
An even better exception message
1 parent 074e726 commit d5cff49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function run($statement, $parameters = null, $tag = null)
108108
{
109109
$this->checkSession();
110110
if (empty($statement)) {
111-
throw new \InvalidArgumentException('You cannot run an empty statement.');
111+
throw new \InvalidArgumentException(sprintf('Expected a non-empty Cypher statement, got "%s"', $statement));
112112
}
113113
$parameters = (array) $parameters;
114114

0 commit comments

Comments
 (0)