Skip to content

DP-384 Added Curl Error Codes and Desc#38

Open
Ryu4fly wants to merge 1 commit into
masterfrom
DP-384
Open

DP-384 Added Curl Error Codes and Desc#38
Ryu4fly wants to merge 1 commit into
masterfrom
DP-384

Conversation

@Ryu4fly
Copy link
Copy Markdown

@Ryu4fly Ryu4fly commented Mar 28, 2022

No description provided.

@Ryu4fly Ryu4fly requested a review from tomonorman March 28, 2022 05:01
@Ryu4fly Ryu4fly changed the title Added Curl Error Codes and Desc DP-384 Added Curl Error Codes and Desc Mar 28, 2022
@@ -427,10 +429,18 @@ protected function processRequest()
$error = Curl::getError();
$code = array_get($error, 'code', 500);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering. if you do a dd() on the $error variable, does it contain anything else except the 'code'? It it has a message maybe we can just use that.

$error = Curl::getError();
$code = array_get($error, 'code', 500);
$status = $code;
$CurlNumCodeArr = array_keys(CURLCODE);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable should be lowercase. Perhaps $curlErrorCodeList is easier to read.

Comment thread src/Services/utils.php
@@ -0,0 +1,92 @@
<?php
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that these messages are not in the $error variable as mentioned above, perhaps we can add all of this as its own file in df-core Enums (like the verbmasks are in this file). That would make it more usable if other services need to use this list in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants