mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-06 03:16:10 +02:00
Error out early when given a non-existing archive file to extract.
This commit is contained in:
parent
c809d93b05
commit
acff88848b
@ -57,6 +57,9 @@
|
||||
"Expand given ARCHIVE-FILE in TMPDIR/(pathname-name ARCHIVE-FILE). Return
|
||||
the pathname where we did expand the archive file."
|
||||
(log-message :notice "Extracting files from archive '~a'" archive-file)
|
||||
(unless (probe-file archive-file)
|
||||
(error "File does not exists: '~a'." archive-file))
|
||||
|
||||
(let* ((archive-name (pathname-name archive-file))
|
||||
(archive-type
|
||||
(intern (string-upcase (pathname-type archive-file)) :keyword))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user