Skip to content

Commit 1b76fa6

Browse files
gpenvernejdpedrie
authored andcommitted
Specify configuration filepath when config file is not found (googleapis#1626)
1 parent 6e72a86 commit 1b76fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ public function setAuthConfig($config)
867867
{
868868
if (is_string($config)) {
869869
if (!file_exists($config)) {
870-
throw new InvalidArgumentException('file does not exist');
870+
throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config));
871871
}
872872

873873
$json = file_get_contents($config);

0 commit comments

Comments
 (0)