mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 02:46:10 +02:00
Fix filename matching when no match is found.
This commit is contained in:
parent
f5f584fdf1
commit
f0cc4ddef9
@ -165,7 +165,7 @@
|
||||
against the given regexp."
|
||||
(let* ((candidates (pgloader.archive:get-matching-filenames root regex))
|
||||
(candidates (ecase keep
|
||||
(:first (list (first candidates)))
|
||||
(:first (when candidates (list (first candidates))))
|
||||
(:all candidates))))
|
||||
(unless candidates
|
||||
(error "No file matching '~a' in expanded archive in '~a'" regex root))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user