Changeset 88653 in spip-zone


Ignore:
Timestamp:
Apr 17, 2015, 3:16:41 PM (4 years ago)
Author:
marcimat@…
Message:

Afficher une éventuelle erreur de curl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/migrateur/dev-by-http/class/Client.php

    r88465 r88653  
    191191                $code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    192192                if ($code != 200) {
    193                         throw new \RuntimeException('HTTP error: '.$code);
     193                        throw new \RuntimeException('HTTP error: ' . $code . " // " . curl_error($curl));
    194194                }
    195195
Note: See TracChangeset for help on using the changeset viewer.