Add a error message if it is unable to fetch prices

This commit is contained in:
SerHack 2019-06-30 10:43:03 +02:00 committed by GitHub
parent 9af67ae75d
commit a3e10ab36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<?php <?php
/* /*
* Main Gateway of Monero using either a local daemon or the explorer * Main Gateway of Monero using either a local daemon or the explorer
* Authors: Serhack, cryptochangements, mosu-forge * Authors: SerHack, cryptochangements, mosu-forge
*/ */
defined( 'ABSPATH' ) || exit; defined( 'ABSPATH' ) || exit;
@ -280,6 +280,9 @@ class Monero_Gateway extends WC_Payment_Gateway
$wpdb->query($query); $wpdb->query($query);
} }
} }
else{
self::$log->add('Monero_Payments', "[ERROR] Unable to fetch prices from cryptocompare.com.");
}
// Get current network/wallet height // Get current network/wallet height
if(self::$confirm_type == 'monero-wallet-rpc') if(self::$confirm_type == 'monero-wallet-rpc')