jenkins-bot has submitted this change and it was merged.

Change subject: additional-exception
......................................................................


additional-exception

adding the extended error info to the exception msg in saveMediafileAsContent 
as well.

Change-Id: Ie7b1f28980e7dff612827611b6028e025645bd19
---
M includes/Handlers/UploadHandler.php
1 file changed, 10 insertions(+), 1 deletion(-)

Approvals:
  BryanDavis: Looks good to me, approved
  jenkins-bot: Verified



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/100711
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7b1f28980e7dff612827611b6028e025645bd19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GWToolset
Gerrit-Branch: master
Gerrit-Owner: Dan-nl <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to