Skip to content

Commit 3a8d112

Browse files
committed
Fix authentication error message
1 parent ea6d038 commit 3a8d112

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
@@ -123,7 +123,7 @@ public function connect() {
123123
$conversation->send($result['body']);
124124
} while ($conversation->valid());
125125
} catch (Throwable $t) {
126-
$e= new AuthenticationFailed($t->getMessage(), $this->optopns['user'], $this->optopns['pass']);
126+
$e= new AuthenticationFailed($t->getMessage(), $this->options['user'], $this->options['pass']);
127127
$e->setCause($t);
128128
throw $t;
129129
}

0 commit comments

Comments
 (0)