Dan-nl has uploaded a new change for review.
https://gerrit.wikimedia.org/r/100705
Change subject: additional-exception
......................................................................
additional-exception
adding the extended error info to the exception msg in saveMediafileAsContent
as well.
Change-Id: I62e6aa2b41fa865ccdf702b7a3794f41713adae6
---
M includes/Handlers/UploadHandler.php
1 file changed, 10 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GWToolset
refs/changes/05/100705/1
diff --git a/includes/Handlers/UploadHandler.php
b/includes/Handlers/UploadHandler.php
index 300f239..05704fe 100644
--- a/includes/Handlers/UploadHandler.php
+++ b/includes/Handlers/UploadHandler.php
@@ -470,7 +470,16 @@
}
if ( !$Status->isOK() ) {
- throw new GWTException( $Status->getMessage() );
+ $msg =
+ $Status->getMessage() . PHP_EOL .
+ 'original URL: ' .
+ Utils::sanitizeUrl(
+
$this->_MediawikiTemplate->mediawiki_template_array['gwtoolset-url-to-the-media-file']
+ ) . PHP_EOL .
+ 'evaluated URL: ' .
+ Utils::sanitizeUrl(
$options['gwtoolset-url-to-the-media-file'] ) . PHP_EOL;
+
+ throw new GWTException( $msg );
}
return $Title;
--
To view, visit https://gerrit.wikimedia.org/r/100705
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I62e6aa2b41fa865ccdf702b7a3794f41713adae6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GWToolset
Gerrit-Branch: master
Gerrit-Owner: Dan-nl <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits