dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96b0739
)
Properly expand the "error storing file" message. Fixes bug 33846
author
Ian Baker
<raindrift@users.mediawiki.org>
Wed, 8 Feb 2012 23:09:19 +0000
(23:09 +0000)
committer
Ian Baker
<raindrift@users.mediawiki.org>
Wed, 8 Feb 2012 23:09:19 +0000
(23:09 +0000)
includes/upload/UploadStash.php
patch
|
blob
|
history
diff --git
a/includes/upload/UploadStash.php
b/includes/upload/UploadStash.php
index
8c12150
..
14560dd
100644
(file)
--- a/
includes/upload/UploadStash.php
+++ b/
includes/upload/UploadStash.php
@@
-214,7
+214,8
@@
class UploadStash {
$error = array( 'unknown', 'no error recorded' );
}
}
- throw new UploadStashFileException( "Error storing file in '$path': " . implode( '; ', $error ) );
+ // at this point, $error should contain the single "most important" error, plus any parameters.
+ throw new UploadStashFileException( "Error storing file in '$path': " . implode( '; ', wfMessage( $error ) ) );
}
$stashPath = $storeStatus->value;