Ensure logging of errors.

The first error of a batch was lost somewhere in the recent changes. My
current best guess is that the rewrite of the copy-batch function made
the handler-bind form setup by the handling-pgsql-notices macro
ineffective, but I can't see why that is.

See #85.
This commit is contained in:
Dimitri Fontaine 2016-03-26 17:51:38 +01:00
parent d1cfe90f5d
commit 6f078daeb9

View File

@ -84,7 +84,9 @@
;; normal behavior, on-error-stop being nil
;; clean the current transaction before retrying new ones
(retry-batch table columns batch batch-rows condition)))
(progn
(log-message :error "~a" condition)
(retry-batch table columns batch batch-rows condition))))
(condition (c)
;; non retryable failures