Skip to content

Commit

Permalink
Be more verbose with the failed-bill-insert error
Browse files Browse the repository at this point in the history
Toward #32.
  • Loading branch information
waldoj committed Dec 8, 2017
1 parent cb0b00f commit 13a59dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cron/bills.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@

if ($result === FALSE)
{
$log->put('Adding ' . $bill['number'] . ' failed. SQL: ' . $sql, 7);
$log->put('Adding ' . $bill['number'] . ' failed. Almost certainly, this means that '
. 'the legislator (' . $bill['chief_patron_id'] . ', '
. strtolower($bill['chief_patron']) . ') who filed this bill isn’t in the database. '
. 'SQL: ' . $sql, 7);
unset($hashes[$number]);
}

Expand Down

0 comments on commit 13a59dc

Please sign in to comment.