Skip to content

Commit 96b1ed4

Browse files
committed
Fix authentication error message
1 parent 20f5a26 commit 96b1ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/com/mongodb/Protocol.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function connect() {
161161
$conversation->send($result['body']);
162162
} while ($conversation->valid());
163163
} catch (Throwable $t) {
164-
$e= new AuthenticationFailed($t->getMessage(), $this->optopns['user'], $this->optopns['pass']);
164+
$e= new AuthenticationFailed($t->getMessage(), $this->options['user'], $this->options['pass']);
165165
$e->setCause($t);
166166
throw $t;
167167
}

0 commit comments

Comments
 (0)