log the remote message if there was one

This commit is contained in:
redmatrix 2015-09-11 14:56:31 -07:00
parent e062c4e6b5
commit fc58b8cc0d

View File

@ -1089,8 +1089,11 @@ function zot_import($arr, $sender_url) {
$data = json_decode(crypto_unencapsulate($data,get_config('system','prvkey')),true);
}
if(! $data['success'])
if(! $data['success']) {
if($data['message'])
logger('remote pickup failed: ' . $data['message']);
return false;
}
$incoming = $data['pickup'];