OSDN Git Service

Correct namespace.
authorSimon Wheatley <simonw@codeforthepeople.com>
Thu, 17 Oct 2013 16:22:02 +0000 (17:22 +0100)
committerSimon Wheatley <simonw@codeforthepeople.com>
Thu, 17 Oct 2013 16:25:39 +0000 (17:25 +0100)
php/WP_CLI/Iterators/Query.php

index 4fea030..03e7fbe 100644 (file)
@@ -73,7 +73,7 @@ class Query implements \Iterator {
 
                if ( !$this->results ) {
                        if ( $this->db->last_error ) {
-                               throw new Iterators\Exception( 'Database error: ' . $this->db->last_error );
+                               throw new Exception( 'Database error: ' . $this->db->last_error );
                        } else {
                                return false;
                        }