Title: [215186] trunk/Tools
Revision
215186
Author
commit-qu...@webkit.org
Date
2017-04-10 10:35:20 -0700 (Mon, 10 Apr 2017)

Log Message

update-webkit-dependency should report $response->message for diagnose
https://bugs.webkit.org/show_bug.cgi?id=170666

Patch by Fujii Hironori <hironori.fu...@sony.com> on 2017-04-10
Reviewed by Alex Christensen.

* Scripts/update-webkit-dependency: Print $response->message to STDERR if an error happens.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (215185 => 215186)


--- trunk/Tools/ChangeLog	2017-04-10 17:28:02 UTC (rev 215185)
+++ trunk/Tools/ChangeLog	2017-04-10 17:35:20 UTC (rev 215186)
@@ -1,3 +1,12 @@
+2017-04-10  Fujii Hironori  <hironori.fu...@sony.com>
+
+        update-webkit-dependency should report $response->message for diagnose
+        https://bugs.webkit.org/show_bug.cgi?id=170666
+
+        Reviewed by Alex Christensen.
+
+        * Scripts/update-webkit-dependency: Print $response->message to STDERR if an error happens.
+
 2017-04-10  Wenson Hsieh  <wenson_hs...@apple.com>
 
         Data interaction on an image enclosed by an anchor should vend the anchor's URL

Modified: trunk/Tools/Scripts/update-webkit-dependency (215185 => 215186)


--- trunk/Tools/Scripts/update-webkit-dependency	2017-04-10 17:28:02 UTC (rev 215185)
+++ trunk/Tools/Scripts/update-webkit-dependency	2017-04-10 17:35:20 UTC (rev 215186)
@@ -99,7 +99,9 @@
 $ua->max_size(undef);
 
 if (! $response->is_success) {
-    print STDERR "Could not access $libsURL:\n", $response->headers_as_string, "\n";
+    print STDERR "Could not access $libsURL:\n";
+    print STDERR $response->message, "\n";
+    print STDERR $response->headers_as_string, "\n";
     print STDERR "Please ensure that $libsURL is reachable";
     if ($libsURL =~ /^https/i) {
         print STDERR " and that Perl can use LWP::Simple to connect to HTTPS URLs.\n";
@@ -165,7 +167,9 @@
     $response = $ua->get($headerURL);
 
     if (! $response->is_success) {
-        print STDERR "Could not access $headerURL:\n", $response->headers_as_string, "\n";
+        print STDERR "Could not access $headerURL:\n";
+        print STDERR $response->message, "\n";
+        print STDERR $response->headers_as_string, "\n";
         print STDERR "Please ensure that $headerURL is reachable";
         if ($headerURL =~ /^https/i) {
             print STDERR " and that Perl can use LWP::Simple to connect to HTTPS URLs.\n";
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to