Restrict condition handling to relevant conditions.

In md-methods copy-database function, don't pretend we are able to handle
any condition when preparing the PostgreSQL schema, database-error is all we
are dealing with there really.
This commit is contained in:
Dimitri Fontaine 2017-07-06 03:11:46 +02:00
parent d3d40cd47d
commit e87477ed31

View File

@ -131,7 +131,7 @@
(when truncate
(truncate-tables pgsql-catalog)))
(condition (e)
(cl-postgres:database-error (e)
(log-message :fatal "Failed to prepare target PostgreSQL table.")
(log-message :fatal "~a" e)
(return-from copy-database)))