Commit 79be572f authored by Jeremy Mikola's avatar Jeremy Mikola

Use private constant in lieu of hard-coded string

parent 48c8290c
...@@ -49,7 +49,7 @@ class DropCollection implements Executable ...@@ -49,7 +49,7 @@ class DropCollection implements Executable
* and NOP instead of throwing. * and NOP instead of throwing.
*/ */
if ($e->getMessage() === self::$errorMessageNamespaceNotFound) { if ($e->getMessage() === self::$errorMessageNamespaceNotFound) {
return (object) ['ok' => 0, 'errmsg' => 'ns not found']; return (object) ['ok' => 0, 'errmsg' => self::$errorMessageNamespaceNotFound];
} }
throw $e; 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