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
+4 -1
View File
@@ -1,7 +1,7 @@
<?php
/*
* 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;
@@ -280,6 +280,9 @@ class Monero_Gateway extends WC_Payment_Gateway
$wpdb->query($query);
}
}
else{
self::$log->add('Monero_Payments', "[ERROR] Unable to fetch prices from cryptocompare.com.");
}
// Get current network/wallet height
if(self::$confirm_type == 'monero-wallet-rpc')