[FIX] Better error handling
This commit is contained in:
parent
187721f48c
commit
6aefea6b6f
@ -56,7 +56,8 @@ if($send > $dThreshold) {
|
|||||||
try {
|
try {
|
||||||
$bitcoin->sendtoaddress($sendAddress, $send);
|
$bitcoin->sendtoaddress($sendAddress, $send);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$log->logError('Failed to send coins to address, skipping liquid assets payout');
|
$log->logFatal('Failed to send coins to address, skipping liquid assets payout:' . $e->getMessage());
|
||||||
|
$monitoring->endCronjob($cron_name, 'E0077', 1, true);
|
||||||
}
|
}
|
||||||
$log->logInfo('Sent out ' . $send . ' liquid assets');
|
$log->logInfo('Sent out ' . $send . ' liquid assets');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -74,4 +74,5 @@ $aErrorCodes['E0073'] = 'Worker name is too long; try entering a shorter name';
|
|||||||
$aErrorCodes['E0074'] = 'Failed deleting expired tokens';
|
$aErrorCodes['E0074'] = 'Failed deleting expired tokens';
|
||||||
$aErrorCodes['E0075'] = 'Upgrade required';
|
$aErrorCodes['E0075'] = 'Upgrade required';
|
||||||
$aErrorCodes['E0076'] = 'No coins in wallet available';
|
$aErrorCodes['E0076'] = 'No coins in wallet available';
|
||||||
|
$aErrorCodes['E0077'] = 'RPC method or connection failed';
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user