We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abffc31 + c8eefea commit 3961ce2Copy full SHA for 3961ce2
src/Operation/DropCollection.php
@@ -45,7 +45,7 @@ public function execute(Server $server)
45
$cursor = $server->executeCommand($this->databaseName, new Command(array('drop' => $this->collectionName)));
46
} catch (DriverRuntimeException $e) {
47
if ($e->getMessage() === 'ns not found') {
48
- $result = (object) ['ok' => 0, 'errmsg' => 'ns not found'];
+ return (object) ['ok' => 0, 'errmsg' => 'ns not found'];
49
}
50
51
throw $e;
0 commit comments