Plugin Directory

Changeset 2154887


Ignore:
Timestamp:
09/11/2019 03:16:54 PM (7 years ago)
Author:
marcusraket.nu
Message:

Save and send back the curl error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metapic/trunk/vendor/metapic/api-client/src/Client.php

    r1755370 r2154887  
    2727        $result = curl_exec($this->curl);
    2828        if ($result === false) {
    29             throw new ApiException("Curl error");
     29            $error = curl_error($this->curl);
     30            throw new ApiException($error);
    3031        }
    3132        return new Response($result);
Note: See TracChangeset for help on using the changeset viewer.