mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
Guard against derivation IDs that aren't numbers
I saw an error suggesting that something came back that wasn't a number, and this should give a more informative error.
This commit is contained in:
parent
f1eb2d3bd2
commit
2c463fcdab
|
@ -493,6 +493,11 @@ WHERE NOT EXISTS (
|
|||
0
|
||||
(map
|
||||
(lambda (derivation-id)
|
||||
(unless (string->number derivation-id)
|
||||
(error
|
||||
(simple-format #f "derivation-id: ~A is not a number"
|
||||
derivation-id)))
|
||||
|
||||
(with-thread-postgresql-connection
|
||||
(lambda (conn)
|
||||
(with-postgresql-transaction
|
||||
|
|
Loading…
Reference in a new issue