We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbafd7c commit 7d42315Copy full SHA for 7d42315
1 file changed
src/MaxMind/Db/Reader.php
@@ -215,7 +215,9 @@ private function findAddressInTree(string $ipAddress): array
215
// Record is a data pointer
216
return [$node, $i];
217
}
218
- throw new InvalidDatabaseException('Something bad happened');
+ throw new InvalidDatabaseException(
219
+ 'Invalid or corrupt database. Maximum search depth reached without finding a leaf node'
220
+ );
221
222
223
private function ipV4StartNode(): int
0 commit comments