[FIX] Better error handling

This commit is contained in:
Sebastian Grewe 2014-01-10 16:41:05 +01:00
parent 187721f48c
commit 6aefea6b6f
2 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,8 @@ if($send > $dThreshold) {
try {
$bitcoin->sendtoaddress($sendAddress, $send);
} 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');
} else {

View File

@ -74,4 +74,5 @@ $aErrorCodes['E0073'] = 'Worker name is too long; try entering a shorter name';
$aErrorCodes['E0074'] = 'Failed deleting expired tokens';
$aErrorCodes['E0075'] = 'Upgrade required';
$aErrorCodes['E0076'] = 'No coins in wallet available';
$aErrorCodes['E0077'] = 'RPC method or connection failed';
?>