Commit 3961ce21 authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #33

parents abffc315 c8eefea7
......@@ -45,7 +45,7 @@ class DropCollection implements Executable
$cursor = $server->executeCommand($this->databaseName, new Command(array('drop' => $this->collectionName)));
} catch (DriverRuntimeException $e) {
if ($e->getMessage() === 'ns not found') {
$result = (object) ['ok' => 0, 'errmsg' => 'ns not found'];
return (object) ['ok' => 0, 'errmsg' => 'ns not found'];
}
throw $e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment