Index: trunk/extensions/PoolCounter/PoolCounterClient_body.php |
— | — | @@ -128,10 +128,6 @@ |
129 | 129 | $parts = explode( ' ', $response, 2 ); |
130 | 130 | $responseType = $parts[0]; |
131 | 131 | switch ( $responseType ) { |
132 | | - case 'ERROR': |
133 | | - $parts = explode( ' ', $parts[1], 2 ); |
134 | | - $errorMsg = isset( $parts[1] ) ? $parts[1] : '(no message given)'; |
135 | | - return Status::newFatal( 'poolcounter-remote-error', $errorMsg ); |
136 | 132 | case 'LOCKED': |
137 | 133 | case 'RELEASED': |
138 | 134 | case 'DONE': |
— | — | @@ -140,6 +136,12 @@ |
141 | 137 | case 'TIMEOUT': |
142 | 138 | case 'LOCK_HELD': |
143 | 139 | return Status::newGood( constant( "PoolCounter::$responseType" ) ); |
| 140 | + |
| 141 | + case 'ERROR': |
| 142 | + default: |
| 143 | + $parts = explode( ' ', $parts[1], 2 ); |
| 144 | + $errorMsg = isset( $parts[1] ) ? $parts[1] : '(no message given)'; |
| 145 | + return Status::newFatal( 'poolcounter-remote-error', $errorMsg ); |
144 | 146 | } |
145 | 147 | } |
146 | 148 | |