aboutsummaryrefslogtreecommitdiffstats
path: root/mod/probe.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-23 15:24:38 -0700
committerfriendica <info@friendica.com>2014-03-23 15:24:38 -0700
commitb6b4ffa68d6deab233dcda06113a849ac78f8f84 (patch)
tree23ec59b1214c418d1832fd4491397e6f7f6c87f4 /mod/probe.php
parentd8577ac7b53fbf2ceb17a9410a1fd22fa93f9a56 (diff)
downloadvolse-hubzilla-b6b4ffa68d6deab233dcda06113a849ac78f8f84.tar.gz
volse-hubzilla-b6b4ffa68d6deab233dcda06113a849ac78f8f84.tar.bz2
volse-hubzilla-b6b4ffa68d6deab233dcda06113a849ac78f8f84.zip
add curl error text to mod/probe so we can remotely diagnose communication issues from other sites.
Diffstat (limited to 'mod/probe.php')
-rw-r--r--mod/probe.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/probe.php b/mod/probe.php
index e2dd4ef77..5b226cb6a 100644
--- a/mod/probe.php
+++ b/mod/probe.php
@@ -20,10 +20,14 @@ function probe_content(&$a) {
if($res['success'])
$j = json_decode($res['body'],true);
else {
+ $o .= sprintf( t('Fetching URL returns error: $1%s'),$res['error'] . "\r\n\r\n");
$o .= "<strong>https connection failed. Trying again with auto failover to http.</strong>\r\n\r\n";
$res = zot_finger($addr,$channel,true);
if($res['success'])
$j = json_decode($res['body'],true);
+ else
+ $o .= sprintf( t('Fetching URL returns error: $1%s'),$res['error'] . "\r\n\r\n");
+
}
if($j && $j['permissions'] && $j['permissions']['iv'])
$j['permissions'] = json_decode(crypto_unencapsulate($j['permissions'],$channel['channel_prvkey']),true);