mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
Add a error message if it is unable to fetch prices
This commit is contained in:
parent
9af67ae75d
commit
a3e10ab36f
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue