Skip to content

Commit 7e87633

Browse files
authored
Improvement: "Bubble" error message for query
Took me a good while to figure out that I was getting an "Authorization failed"
1 parent 4a1efb4 commit 7e87633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InfluxDB/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function query($database, $query, $parameters = [])
193193
return $driver->query();
194194

195195
} catch (\Exception $e) {
196-
throw new Exception('Query has failed', $e->getCode(), $e);
196+
throw new Exception('Query has failed: ' . $e->getMessage(), $e->getCode(), $e);
197197
}
198198
}
199199

0 commit comments

Comments
 (0)