Index: trunk/phase3/includes/upload/UploadStash.php |
— | — | @@ -214,7 +214,8 @@ |
215 | 215 | $error = array( 'unknown', 'no error recorded' ); |
216 | 216 | } |
217 | 217 | } |
218 | | - throw new UploadStashFileException( "Error storing file in '$path': " . implode( '; ', $error ) ); |
| 218 | + // at this point, $error should contain the single "most important" error, plus any parameters. |
| 219 | + throw new UploadStashFileException( "Error storing file in '$path': " . implode( '; ', wfMessage( $error ) ) ); |
219 | 220 | } |
220 | 221 | $stashPath = $storeStatus->value; |
221 | 222 | |